<baht-code>
Monospace code, inline chip or block. Content is the children (or the code property). Not a highlighter.
Inline
Use
Events (name)
<p>Use <baht-code>baht-button</baht-code> for actions and <baht-code>baht-input</baht-code> for text.</p>Use
Block
Events (name)
<baht-code variant="block">npm i bank20baht-ui
import ‘bank20baht-ui’;</baht-code>| Name | Type | Default | Description |
|---|---|---|---|
variant | CodeVariant | 'inline' | Inline chip or block (inline | block) |
code | string | '' | Text alternative to children |
| Slot | Description |
|---|---|
(default) | The code text |