<div class="demo-caption">Default</div>
<ray-blockquote cite="— Grace Hopper" href="https://en.wikipedia.org/wiki/Grace_Hopper">
The most dangerous phrase in the language is "We've always done it this way."
</ray-blockquote>
<div class="demo-caption">Variants and colors</div>
<div class="demo-grid demo-quotes">
<ray-blockquote color="teal" cite="— Edsger Dijkstra">Simplicity is prerequisite for reliability.</ray-blockquote>
<ray-blockquote variant="outline" color="orange" cite="— Alan Kay">The best way to predict the future is to invent it.</ray-blockquote>
<ray-blockquote variant="filled" color="violet" cite="— Ada Lovelace" radius="lg">The more I study, the more insatiable do I feel my genius for it to be.</ray-blockquote>
<ray-blockquote color="red" icon="alert-triangle" cite="— The raylang manual">A closure stored in a variable cannot cross a fiber boundary in a native build.</ray-blockquote>
</div>
<div class="demo-caption">Spacing and edge</div>
<div class="demo-grid demo-quotes">
<ray-blockquote padding="xs" size="sm" cite="padding="xs"">Compact, for dense panels and sidebars.</ray-blockquote>
<ray-blockquote padding="lg" cite="padding="lg"">Roomy, for a quote that leads a section.</ray-blockquote>
<ray-blockquote hide-edge color="teal" cite="hide-edge">Only the tint and the mark, no colored edge.</ray-blockquote>
<ray-blockquote hide-edge icon="none" variant="outline" color="gray" cite="hide-edge · icon="none" · outline">The plainest one: a bordered box.</ray-blockquote>
</div>
<div class="demo-caption">A testimonial</div>
<ray-blockquote color="blue" size="lg" variant="outline" radius="xl">
<p>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.</p>
<div slot="cite" class="demo-quote-author">
<ray-avatar name="Katherine Johnson" color="blue"></ray-avatar>
<div><strong>Katherine Johnson</strong><span>Engineering lead, Orbit Labs</span></div>
<ray-badge variant="light" color="green" normal-case style="margin-inline-start: auto">Verified customer</ray-badge>
</div>
</ray-blockquote>
<div class="demo-caption">In an article</div>
<article class="demo-article">
<h3>Why the web components are form-associated</h3>
<p>Every field of ray-elements takes part in its <code><form></code> like a native control: it is submitted under its name, validated, reset and disabled by a fieldset.</p>
<ray-blockquote size="sm" icon="none" variant="outline" color="gray" cite="— WHATWG HTML Living Standard" href="https://html.spec.whatwg.org/multipage/custom-elements.html#form-associated-custom-elements">
Form-associated custom elements enable web authors to define and create custom elements which participate in form submission.
</ray-blockquote>
<p>That is why a <code>FormData</code> built from a form full of ray-elements fields has every value in it, with no glue code.</p>
</article>
import { RayBlockquote, RayAvatar, RayBadge } from "@raylang/react";
export function BlockquoteExample() {
return (
<>
<div className="demo-caption">Default</div>
<RayBlockquote cite="— Grace Hopper" href="https://en.wikipedia.org/wiki/Grace_Hopper">
The most dangerous phrase in the language is "We've always done it this way."
</RayBlockquote>
<div className="demo-caption">Variants and colors</div>
<div className="demo-grid demo-quotes">
<RayBlockquote color="teal" cite="— Edsger Dijkstra">Simplicity is prerequisite for reliability.</RayBlockquote>
<RayBlockquote variant="outline" color="orange" cite="— Alan Kay">The best way to predict the future is to invent it.</RayBlockquote>
<RayBlockquote variant="filled" color="violet" cite="— Ada Lovelace" radius="lg">The more I study, the more insatiable do I feel my genius for it to be.</RayBlockquote>
<RayBlockquote color="red" icon="alert-triangle" cite="— The raylang manual">A closure stored in a variable cannot cross a fiber boundary in a native build.</RayBlockquote>
</div>
<div className="demo-caption">Spacing and edge</div>
<div className="demo-grid demo-quotes">
<RayBlockquote padding="xs" size="sm" cite="padding="xs"">Compact, for dense panels and sidebars.</RayBlockquote>
<RayBlockquote padding="lg" cite="padding="lg"">Roomy, for a quote that leads a section.</RayBlockquote>
<RayBlockquote hideEdge color="teal" cite="hide-edge">Only the tint and the mark, no colored edge.</RayBlockquote>
<RayBlockquote hideEdge icon="none" variant="outline" color="gray" cite="hide-edge · icon="none" · outline">The plainest one: a bordered box.</RayBlockquote>
</div>
<div className="demo-caption">A testimonial</div>
<RayBlockquote color="blue" size="lg" variant="outline" radius="xl">
<p>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.</p>
<div slot="cite" className="demo-quote-author">
<RayAvatar name="Katherine Johnson" color="blue" />
<div><strong>Katherine Johnson</strong><span>Engineering lead, Orbit Labs</span></div>
<RayBadge variant="light" color="green" normalCase style={{ marginInlineStart: "auto" }}>Verified customer</RayBadge>
</div>
</RayBlockquote>
<div className="demo-caption">In an article</div>
<article className="demo-article">
<h3>Why the web components are form-associated</h3>
<p>Every field of ray-elements takes part in its <code><form></code> like a native control: it is submitted under its name, validated, reset and disabled by a fieldset.</p>
<RayBlockquote size="sm" icon="none" variant="outline" color="gray" cite="— WHATWG HTML Living Standard" href="https://html.spec.whatwg.org/multipage/custom-elements.html#form-associated-custom-elements">
Form-associated custom elements enable web authors to define and create custom elements which participate in form submission.
</RayBlockquote>
<p>That is why a <code>FormData</code> built from a form full of ray-elements fields has every value in it, with no glue code.</p>
</article>
</>
);
}
<template>
<div class="demo-caption">Default</div>
<RayBlockquote cite="— Grace Hopper" href="https://en.wikipedia.org/wiki/Grace_Hopper">
The most dangerous phrase in the language is "We've always done it this way."
</RayBlockquote>
<div class="demo-caption">Variants and colors</div>
<div class="demo-grid demo-quotes">
<RayBlockquote color="teal" cite="— Edsger Dijkstra">Simplicity is prerequisite for reliability.</RayBlockquote>
<RayBlockquote variant="outline" color="orange" cite="— Alan Kay">The best way to predict the future is to invent it.</RayBlockquote>
<RayBlockquote variant="filled" color="violet" cite="— Ada Lovelace" radius="lg">The more I study, the more insatiable do I feel my genius for it to be.</RayBlockquote>
<RayBlockquote color="red" icon="alert-triangle" cite="— The raylang manual">A closure stored in a variable cannot cross a fiber boundary in a native build.</RayBlockquote>
</div>
<div class="demo-caption">Spacing and edge</div>
<div class="demo-grid demo-quotes">
<RayBlockquote padding="xs" size="sm" cite="padding="xs"">Compact, for dense panels and sidebars.</RayBlockquote>
<RayBlockquote padding="lg" cite="padding="lg"">Roomy, for a quote that leads a section.</RayBlockquote>
<RayBlockquote hide-edge color="teal" cite="hide-edge">Only the tint and the mark, no colored edge.</RayBlockquote>
<RayBlockquote hide-edge icon="none" variant="outline" color="gray" cite="hide-edge · icon="none" · outline">The plainest one: a bordered box.</RayBlockquote>
</div>
<div class="demo-caption">A testimonial</div>
<RayBlockquote color="blue" size="lg" variant="outline" radius="xl">
<p>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.</p>
<div slot="cite" class="demo-quote-author">
<RayAvatar name="Katherine Johnson" color="blue" />
<div><strong>Katherine Johnson</strong><span>Engineering lead, Orbit Labs</span></div>
<RayBadge variant="light" color="green" normal-case style="margin-inline-start: auto">Verified customer</RayBadge>
</div>
</RayBlockquote>
<div class="demo-caption">In an article</div>
<article class="demo-article">
<h3>Why the web components are form-associated</h3>
<p>Every field of ray-elements takes part in its <code><form></code> like a native control: it is submitted under its name, validated, reset and disabled by a fieldset.</p>
<RayBlockquote size="sm" icon="none" variant="outline" color="gray" cite="— WHATWG HTML Living Standard" href="https://html.spec.whatwg.org/multipage/custom-elements.html#form-associated-custom-elements">
Form-associated custom elements enable web authors to define and create custom elements which participate in form submission.
</RayBlockquote>
<p>That is why a <code>FormData</code> built from a form full of ray-elements fields has every value in it, with no glue code.</p>
</article>
</template>