Elements

Components

Config Provider

The four density tiers the token layer's `[data-density]` selectors name — whitespace and control heights compress, readability never does.

#Basic usage

config-provider/basic Vue React

Outside — the page's own density and ink

Brush, ink, paper, and the inkstone — the same furniture.

Inside — compact controls under the qinghua accent

Density and pigment are fixed in here — mode, scene and paper still ride the page around them.

config-provider/nested Vue React

Comfortable — the outer provider's tier

Local to this host element and its descendants.

Compact — the inner provider, its own scope only

The outer scope stays where it was.

#Props

#ConfigProvider

The declarative host for global configuration: one element that both carries the token layer's attributes — [data-density] and [data-accent] fire on any element — and provides the same values to descendants through useConfig, so interactive behavior (formatting, messages) and visual theming stay one decision.

PropTypeDefaultDescription
densityString as PropType<ConfigDensity>undefined—
sceneString as PropType<ConfigScene>undefined—
accentStringundefined—
dirString as PropType<"ltr" | "rtl">undefined—
localeStringundefined—