Components
CodePreview
CodePreview is a token-driven Sigil component in the developer and ai/product ui group.
Import
import { CodePreview } from "@sigil-ui/components";Preview
Usage
<CodePreview preview={<Button>Preview</Button>} code={`<Button>Preview</Button>`} language="tsx" />CLI
npx @sigil-ui/cli add code-previewToken Integration
CodePreview follows the Sigil component rules: styles resolve from var(--s-*), class names are mergeable through className, and the component is exported from @sigil-ui/components.