A quotation set apart from the text (Mantine's Blockquote): a colored edge, a quote mark on it and the attribution below. A real <blockquote> inside, with the source's URL as its cite.
The most dangerous phrase in the language is "We've always done it this way."
Variants and colors
Simplicity is prerequisite for reliability.The best way to predict the future is to invent it.The more I study, the more insatiable do I feel my genius for it to be.A closure stored in a variable cannot cross a fiber boundary in a native build.
Spacing and edge
Compact, for dense panels and sidebars.Roomy, for a quote that leads a section.Only the tint and the mark, no colored edge.The plainest one: a bordered box.
A testimonial
We moved our desktop tools to raylang and ray-elements in a week. The components looked right on day one, in light and dark, and the forms just worked.
Katherine JohnsonEngineering lead, Orbit Labs
Verified customer
In an article
Why the web components are form-associated
Every field of ray-elements takes part in its <form> like a native control: it is submitted under its name, validated, reset and disabled by a fieldset.
Form-associated custom elements enable web authors to define and create custom elements which participate in form submission.
That is why a FormData built from a form full of ray-elements fields has every value in it, with no glue code.
Paragraphs in it are spaced and the last one has no bottom margin. The attribution is text (cite) or rich content (slot="cite": an avatar, a name, a role).
Property
Attribute
Type
Default
Description
cite
cite
string
Who said it, shown below the quote ("— Grace Hopper").
href
href
string
URL of the source: the inner blockquote's cite attribute.
color
colorreflects
string
A palette color or any CSS color, for the edge, the mark and the tint. Default: the primary.
variant
variantreflects
light | outline | filled
light
light: tinted background; outline: border and edge only; filled: solid color (a pull quote).
icon
icon
string
quote
Registry icon of the mark, or none. The icon slot replaces it.
size
sizereflects
sm | md | lg
md
Text size (lg for a pull quote).
padding
paddingreflects
string
Inner spacing: xs…xl (the spacing scale), px as a number, or a CSS length. Default: md.
hideEdge
hide-edgereflects
boolean
No colored edge on the start side (the tint, border and mark stay).
radius
radiusreflects
string
Corner radius: xs…xl, none, or a CSS length. Default: md.