QuoteCard
A testimonial with clear attribution, optional portrait and rating.
Live TypeScript example
Try the component here, then use the source below in your application.
- JavaScript
- 2.2 KiB
- Component CSS
- 1.1 KiB
- Shared theme CSS
- 3.8 KiBonce per application
How sizes are measured
The JavaScript figure includes this component’s required helpers. CSS includes its styling dependencies. Each entry is bundled separately for ES2022, minified, then compressed with gzip level 9. Your bundler may share helpers across components. Images, fonts, examples and application code are excluded.
Before compression: JavaScript 4.7 KiB; component CSS 3.0 KiB. These figures describe browser assets, not the complete package download.
View all component measurements →Tab reaches every interactive control. Shared Light/Dark/System appearance and reduced motion apply.
import '@blukavantui/web/theme.css'
import {createQuoteCard} from '@blukavantui/web/quote-card';
import '@blukavantui/web/quote-card.css';
export function mount(host:HTMLElement) {
const owned:{destroy():void}[]=[];
const keep=<T extends {destroy():void}>(c:T)=>{owned.push(c);return c;};
const status=document.createElement("p");status.setAttribute("role","status");
keep(createQuoteCard(host,{
"Quote": "They turned a complex idea into an experience that feels effortless. Every detail has a purpose.",
"Name": "Alex Morgan",
"Role": "Founder, Forma \u2014 sample testimonial",
"AvatarUrl": "https://blukavantui.blutekmedia.com/bluui/rich/portrait-1.jpg",
"Rating": 5
},{Error: (message) => {status.textContent="Error: "+String(message);}}));host.append(status);
return {destroy(){owned.reverse().forEach(c=>c.destroy());status.remove();}};
}
const instance = mount(document.getElementById('example')!)
// When this page or framework component is removed:
// instance.destroy()
Install the library and add the host element
npm install https://blukavantui.blutekmedia.com/downloads/blukavantui-web-0.6.2.tgz<div id="example"></div>This example uses the downloadable @blukavantui/web package. Your application handles persistence and authentication through its typed callbacks. The starter ZIP includes this same example.
createQuoteCard
Pass options as the second argument and callbacks in the third argument. Keep the returned instance to update options or dispose it when its view is removed.
import { createQuoteCard } from '@blukavantui/web/quote-card';
import '@blukavantui/web/quote-card.css';Load @blukavantui/web/theme.css once in your app shell.createQuoteCard(host: HTMLElement, options: T.QuoteCardOptions, events?: T.QuoteCardEvents)Reference for @blukavantui/web 0.6.2. Required and optional follow the shipped TypeScript declarations; optional does not imply a particular default. Pass typed arrays and objects directly where shown.
Options
8| Name | Type / requirement | Usage |
|---|---|---|
Quote | stringOptional | Testimonial text. Default: "Good work starts with a conversation.". |
Name | stringOptional | Attribution name. Default: "Alex Morgan". |
Role | stringOptional | Attribution role or company. Default: "". |
AvatarUrl | stringOptional | Optional portrait URL. Default: "". |
LogoUrl | stringOptional | Optional organization logo. Default: "". |
Rating | numberOptional | Optional rating from 1 to 5; zero hides the rating. Default: 0. |
AccessibleLabel | stringOptional | Optional accessible name; empty uses a sensible component label. Default: "". |
ExtendedClass | stringOptional | Additional classes on the component root. Default: "". |
Callbacks
1| Name | Type / requirement | Usage |
|---|---|---|
Error | (message: string) => void | Promise<void>Optional |
Instance methods & properties
3| Name | Signature / type | Usage |
|---|---|---|
element | HTMLElement | Root owned by this instance. Dispose before removing its host. |
update | (patch: Partial<T.QuoteCardOptions>) => void | Apply a partial options update to this instance. |
destroy | () => void | Dispose the instance and its listeners when the view is removed. |
Use these inputs, events, actions and structures in Service Studio. Names and data bindings are specific to the native Blocks.
Part of the full commercial BluKavantUI for OutSystems edition. View OutSystems editions →
Open OutSystems showcase ↗- Web runtime
- Partially supported
- TypeScript
- Partially supported
- OutSystems
- Partially supported
Statuses describe the component’s rendered code and interactions. Supply accessible content and follow the component guidance when integrating it.
Accessibility guidance →Purpose and use
A testimonial with clear attribution, optional portrait and rating.
Keyboard design guidance
Tab reaches every interactive control. Shared Light/Dark/System appearance and reduced motion apply.
See the support status above for review coverage and any limitations.
In your application
Provide useful labels, preserve visible focus, and test the component with your actual content. Use text alongside status colors and check contrast in each state.
Events0No events yet.
Interact with an example to see its events.