Specimen
A live component and its source code, shown as one figure. If the example has more than one file, each file gets a tab. A ground holds the running component on paper, with its code below it. Thus the pair looks like one thing and its source, not like two unrelated boxes. This arrangement follows the rule of the system for grounds and objects. The surface sizes give the ground larger corners than the paper, so you do not pick a number. The code half is the full code-sample block, so it includes annotations, the copy button, line numbers and the line limit. If the example is already a panel, say so, because a card on paper is the problem that this figure avoids.
<Button emphasis="loud">Continue</Button>import { Button } from "@kushagradhawan/kookie-ui-react";import { Specimen } from "../../blocks/specimen";const SOURCE = `<Button emphasis="loud">Continue</Button>`;export default async function Example() { return Specimen({ sources: [{ code: SOURCE, lang: "tsx" }], children: <Button emphasis="loud">Continue</Button>, });}