Skip to content
Corex

Dialog

Style

Semantic colors, visual variants, density, corner radius, and side layout on the dialog root.

Preview

Semantic

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

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

Variant

Variant modifiers control dialog 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 dialog ui-accent ui-solid.

Size

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

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

Rounded

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

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

Side

Max height

Use class="max-h-{step}" to set the maximum height of a dialog 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 (dialog)

9xs

8xs

7xs

6xs

5xs

4xs

3xs

2xs

xs

sm

md

lg

xl

2xl

3xl

4xl

5xl

6xl

7xl

8xl

9xl