Kits
MarkdownBlock
Assistant markdown output rendered to prose, with a header and copy-source action.
Composition
Anatomy
- <MarkdownBlock>
- <MarkdownBlockHeader>
- <MarkdownBlockTitle />
- <MarkdownBlockCopy />
- <MarkdownBlockContent />
- <MarkdownBlockHeader>
Installation
Use this command to install the component.
Usage
Dependencies
Copy hook
Codesrc/registry/hooks/use-copy-to-clipboard.tsHookcodePrimitiveMarkdownmarkdownPrimitiveScroll areascroll-areaPrimitiveRaw code
Installed component source and support files
Knobs
Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.
--cui-markdown-block-* · 8 knobsHow the cascade resolves--cui-markdown-block-radius<length-percentage>var(--radius-panel)--cui-markdown-block-background<color>var(--background)--cui-markdown-block-border-color<color>var(--border)--cui-markdown-block-border-width<length>var(--control-rim-width)--cui-markdown-block-shadow*var(--shadow-sm)--cui-markdown-block-header-border-color<color>var(--border)--cui-markdown-block-header-border-width<length>var(--control-rim-width)--cui-markdown-block-icon-background<color>oklch(from var(--foreground) l c h / 0.08)