SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

UiLabel

Chips that name a product's controls inside help-doc prose.

Open the monitor, click Pause checks, then confirm with Pause.

View code
tsx
<p>
	Open the monitor, click <UiLabel>Pause checks</UiLabel>, then confirm with <UiLabel>Pause</UiLabel>.
</p>

Demo docs sites

Whole pages built only from @sdxc/ui, each for an invented product with its own palette and type. They open in a new tab.

Every demo, landings and docs sites alike, is listed in the demo gallery.

Installation

An ordinary dependency: install it, import the theme once, and import the component where it is used.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
import { UiLabel } from "@sdxc/ui/docs";

Renders a control's name as a light, hairline-bordered chip in the sans face, so it reads as something on screen rather than as code. It never breaks inside, and sizes relative to the sentence around it.

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

PropTypeRequiredDescription
childrenRemixNodeYes

Also accepts everything in TagProps<"span">.

Other components this module publishes.

  • UiPath
@sdxc/ui

Can’t find it? Contact us