picocss/stories/text-content/blockquote.stories.ts

32 lines
1,016 B
TypeScript
Raw Normal View History

2025-04-04 11:51:33 +02:00
import { createHTMLElement } from "../HTMLElement";
export default {
title: "TextContent/Blockquote",
tags: ["autodocs"],
args: {
content: "Content",
cite: "https://example.com",
},
// Render the <html> element
render: (args) => {
return createHTMLElement("blockquote", args);
},
};
export const Default = {};
export const MozillaExample = {
render:
() => `<blockquote cite="https://datatracker.ietf.org/doc/html/rfc1149">
<p>
Avian carriers can provide high delay, low throughput, and low altitude
service. The connection topology is limited to a single point-to-point path
for each carrier, used with standard carriers, but many carriers can be used
without significant interference with each other, outside early spring. This
is because of the 3D ether space available to the carriers, in contrast to
the 1D ether used by IEEE802.3. The carriers have an intrinsic collision
avoidance system, which increases availability.
</p>
</blockquote>`,
};