DocsBlogChangelog

Toolbar

A toolbar for the CodeBlock component that displays the filename, a source link, and copy button.

API Reference

value

string

The value of the code block.

sourcePath

string

The path to the source file.

allowCopy

boolean

Whether or not to allow copying the code block value.

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.

Last updated