Kanzo UI
Data display

Eyebrow

The small uppercase line that names a block from above it.

Ark UI

How it fits together

  • A laureate won an award
  • An award is in a category
  • A laureate studied at a university

Usage

import { Eyebrow } from "@kanzo-tech/ui";
<Eyebrow>Parameters</Eyebrow>

Small, muted, uppercase and tracked: Parameters over a tool's input, Theme over a picker, How it fits together over a list. It is a look and nothing else — no size, no weight, no variant — so it carries no margin either: the space under it is the placement's.

Whose element it is

Eyebrow renders a <div>. What the line is depends on what it heads, so asChild puts the look on that element instead: an <h3> where it is a heading, a FieldLegend over a group, a FieldLabel over one control, a SliderLabel over a slider. A library part keeps its own data-slot through the merge.

<Eyebrow asChild>
  <h3>How it fits together</h3>
</Eyebrow>

<FieldSet>
  <Eyebrow asChild>
    <FieldLegend>Density</FieldLegend>
  </Eyebrow>
  …
</FieldSet>

Preferences draws every heading this way, at the panel's 11px through className.

API Reference

Extends React.ComponentProps<typeof ark.div>. Why a fixed role became a part, against a library that otherwise lets chrome style its own text, is on What earns a name.

On this page