Box
<k-box>
The <k-box>
component is a multi-purpose box with text. You can use it as a foundation for empty state displays or anything else that needs to be displayed in a box. It comes with several pre-defined styles …
Props
Prop | Type | Default | Description |
---|---|---|---|
html |
boolean |
false |
If set to
true , the text is rendered as HTML code, otherwise as plain text |
text |
string |
– |
Text to display inside the box
|
theme |
string none, code, button, positive, negative, notice, info, empty |
"none" |
Choose one of the pre-defined styles
|
Slots
Slot | Description |
---|---|
default | Use instead of text prop |
Events
The box listens to any typical HTML event.
Content
Via text
prop
Custom content
The box can be filled with your own elements to overwrite the default text implementation:
CSS classes
.k-box