Accordion
A vertically stacked set of interactive headings that each reveal a section of content.
Accordion
Yes. It adheres to the WAI-ARIA design pattern
A vertically stacked set of interactive headings that each reveal a section of content.
Displays a button or a component that looks like a button.
Everything related to code,
import { readFileSync } from "fs";
import { Pre } from "@components/ui/Pre";
import { getHighlighter, highlight } from "@lib/shiki";
export default async function Preview() {
const code = await getCode();
return (
<div className="h-full w-full p-4">
<div className="overflow-x-scroll rounded-lg border border-border pb-3 pt-4">
<Pre htmlCode={code} />
</div>
</div>
);
}
async function getCode() {
const highlighter = await getHighlighter();
const code = readFileSync("src/examples/code/Pre.tsx", "utf8");
return await highlight(highlighter, code);
}
import { readFileSync } from "fs";
import { Pre } from "@components/ui/Pre";
import { getHighlighter, highlight } from "@lib/shiki";
export default async function Preview() {
const code = await getCode();
return (
<div className="h-full w-full p-4">
<div className="overflow-x-scroll rounded-lg border border-border pb-3 pt-4">
<Pre htmlCode={code} />
</div>
</div>
);
}
async function getCode() {
const highlighter = await getHighlighter();
const code = readFileSync("src/examples/code/Pre.tsx", "utf8");
return await highlight(highlighter, code);
}
Displays a form input field or a component that looks like an input field.
Displays a list of options for the user to pick from—triggered by a button.
A control that allows the user to toggle between checked and not checked. (Note: container queries are messing with layout)
A set of layered sections of content—known as tab panels—that are displayed one at a time.
A succinct message that is displayed temporarily.