• Start
  • Blogg
  • Kom igång
  • Riktlinjer
  • Komponenter
  • Changelog
  • Tillgänglighet
  • Inställningar

Komponenter

Komponenter

​
​

Inga resultat hittade, prova med andra sökvillkor.

Code

Code

0.2.4

The Code component renders syntax highlighted code.

Demo
Props
Installation
Länkar
Change log
Statistik

Demo

Props

Se fullständing dokumentation(öppnas i ny flik)
NamnTypBeskrivning

color

CodeColorBackground color variant.

customAttribute

{ attribute: string; value: string | number }Used for tests. Clickable and requested subcomponents will be suffixed with "-[ComponentName]".

label *

stringThe code text content.

ref

RefForwarded ref to the underlying code element.

Installation

Kodexempel
npm install @sj-ab/component-library.ui.code

Länkar

  • Storybook

  • Figma

  • Bit.cloud

Change log

  • Security updates and bit automatic vulnerabilites workflow fix

    0.2.2
  • Adds new dimension.borderRadius tokens and updates border radius usage throughout.

    0.2.0
  • Add new Code component

    0.1.0

Statistik