Skip to content
Corex

Number Input

Style

Semantic colors, density, and corner radius via modifier classes and Tailwind max-w-* on the number input root.

Semantic

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

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

Size

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

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

Rounded

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

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

Max width

Without max-w-*, width comes from component CSS. Default for number-input: 5xs (width: 100%).

Use class="max-w-{step}" to set the maximum width of a number input root.

Available options: none, full, 9xs, 8xs, 7xs, 6xs, 5xs (default), 4xs, 3xs, 2xs, xs, sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl, 8xl, 9xl

default (5xs)

none

full

9xs

8xs

7xs

6xs

5xs

4xs

3xs

2xs

xs

sm

md

lg

xl

2xl

3xl

4xl

5xl

6xl

7xl

8xl

9xl