Skip to content
Corex

Floating Panel

Style

Semantic colors, visual variants, density, and corner radius via modifier classes on the floating panel root. Host semantics tint title and header chrome; the open trigger stays subtle.

Preview

Semantic

Use class="ui-{role}" to set the semantic palette of a floating panel.

Available options: accent, alert, brand, info, success

Variant

Variant modifiers control floating-panel surface treatment. Default is subtle (neutral fill and border; semantic roles tint text ink); add ui-solid for a filled surface.

Semantic × variant

Combine semantic palette and variant treatment on the same host, for example floating-panel ui-accent ui-solid.

Size

Use class="ui-size-{size}" to set the size of a floating panel.

Available options: xs, sm, md (default), lg, xl

Rounded

Use class="ui-rounded-{step}" to set the corner radius of a floating panel.

Available options: none, xs, sm, md, lg, xl, 2xl, 3xl, 4xl, full (default)

Max height

Use class="max-h-{step}" to set the maximum height of a floating panel root.

Available options: none, full, screen, dvh, 9xs, 8xs, 7xs, 6xs, 5xs, 4xs, 3xs, 2xs, xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl, 8xl, 9xl

default (floating-panel)

9xs

8xs

7xs

6xs

5xs

4xs

3xs

2xs

xs

sm

md

lg

xl

2xl

3xl

4xl

5xl

6xl

7xl

8xl

9xl