Toolbar
A toolbar for the CodeBlock component that displays the file path, a source link, and copy button.
API Reference
Properties
| Property | Type | Modifiers |
|---|---|---|
| allowCopy? | boolean | string | — |
Whether or not to allow copying the code block value. Accepts a boolean or a string that will be copied. | ||
| css? | CSSObject | — |
CSS object to apply to the toolbar. | ||
| className? | string | — |
Class name to apply to the toolbar. | ||
| style? | React.CSSProperties | — |
Style to apply to the toolbar. | ||
| children? | React.ReactNode | — |
The children of the toolbar rendered at the start. | ||
A toolbar for the CodeBlock component that displays the file path, a source link, and copy button.
Properties
ToolbarPropsReturns
Promise<React.JSX.Element>Modifiers
asyncLast updated
Tokens
NextCodeInline