Display a snippet of copyable code for the command line.
Basic Usage
yarn add @bolio-ui/core
Specify width manually.
yarn add @bolio-ui/core
Show different states with colors.
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
You can completely round the corners of any type of Snippet
with the rounded
property.
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
You can use multi line of the Snippet
with the array in text
prop.
cd project
now
Hide icon for copy. (disable copy)
yarn add @bolio-ui/core
You can custom symbol of the Snippet
with the property symbol
.
yarn add @bolio-ui/core
You can custom toast of the Snippet
with the property toastText
and toastType
.
yarn add @bolio-ui/core
Show different states filled with colors.
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
yarn add @bolio-ui/core
Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
text | code snippet | string string[] | - | - |
type | snippet types | SnippetTypes | SnippetTypes | default |
filled | filled style | boolean | - | false |
width | set CSS string | string | - | initial |
copy | function of copy button | CopyTypes | CopyTypes | default |
symbol | symbol snippet | string | - | $ |
toastText | toast text | string | - | Copied to clipboard! |
toastType | toast type | ToastTypes | ToastTypes | success |
... | native props | HTMLAttributes | 'id', 'name', 'className', ... | - |
type SnippetTypes =
| 'default'
| 'primary'
| 'secondary'
| 'success'
| 'warning'
| 'error'
| 'info'
type CopyTypes = 'default' | 'silent' | 'prevent'
type ToastTypes =
| 'default'
| 'primary'
| 'secondary'
| 'success'
| 'warning'
| 'error'
| 'info'
Previous
Slider
Next
Spacer