Skip to content Meow, meow, meow... CSS Components Web Components
Meow, meow, meow...
Quote
Quotes can be used to include a citation into your page content or to highlight an excerpt from a body text. They call for users' attention and display information that is always relevant to the context. Quotes are also a good way to help users visually scan a page.
UX/UI Guidelines
Check the design documentation of the component in ZeroHeight.
Implementations
The component Quote
is available in the following technologies:
Parameters
Parameters
Make sure you have read about the parameters in here.
The parametrization of the component can be done with the following custom params or properties:
Name | Type | Slot | Description |
---|---|---|---|
content | string | ✅ | The quote content |
quote-src | string | The source of the quote | |
author-name | string | ✅ | The name of the author |
description | string | ✅ | The description of the quote |
image-src | string | ✅ | The |
image-alt | string | Alternative text for image accessibility | |
cross-origin | string | The | |
custom | object | A record of key-value pairs to set the CSS custom tokens. It's a complex attribute set as an JS object in stringified JSON format. Example: html
Check the available values in the customization section. | |
custom-str | string | The stringified version of the Example: html
| |
z-theme | string | Sets the theme of the component. The possible values are html
|
From Figma to code
You can check the Figma implementation here. This are the available properties:
- Size
select
- Title
text
- Author name
text
- Description
boolean
- Description
text
- Image
boolean
Customization
INFO
Check everything about the customization mechanics in the "How it works" documentation.
CSS Variable | Type | Description |
---|---|---|
--z-quote--bg | color | Background color of the quote |
--z-quote--color | color | Text color of the quote |
Both background and text colors can be customized using the --z-quote--bg
and --z-quote--color
CSS custom properties.
Accessibility
...