Code
0.2.4
The Code component renders syntax highlighted code.
| Namn | Typ | Beskrivning |
|---|---|---|
color | CodeColor | Background color variant. |
customAttribute | { attribute: string; value: string |
number } | Used for tests. Clickable and requested subcomponents will be suffixed with "-[ComponentName]". |
label * | string | The code text content. |
ref | Ref | Forwarded ref to the underlying code element. |
npm install @sj-ab/component-library.ui.code