ZUI

Search documentation

Find a page or a heading.

Icon Label

A label whose icon stands in for a field's text in a dense panel, tied to its control through htmlFor and sizing an unclassed child svg to a compact glyph.

tsx

Installation

bash

Usage

tsx
tsx

Use it to stand in for a field's own text label in a dense panel. For a glyph that carries no field of its own, such as a model ability, use Icon Media instead.

API reference

IconLabel

Renders a label and takes every prop a label takes. An svg child with no size-* class of its own is drawn at size-3. It sets data-slot="icon-label".