Toolbar
A toolbar for the CodeBlock component that displays the filename, a source link, and copy button.
API Reference
Toolbar
View Sourcevalue
stringThe value of the code block.
sourcePath
stringThe path to the source file.
allowCopy
booleanWhether or not to allow copying the code block value.
className
stringClass name to apply to the toolbar.
style
React.CSSPropertiesStyle to apply to the toolbar.
children
React.ReactNodeThe children of the toolbar rendered at the start.
Last updated