Size Picker
Size selection: tiles or a scrolling row, out-of-stock states. Pro · Forms and input › Color, size and emoji
Installation
npx valyro-cli@latest login
npx valyro-cli@latest add size-picker
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { SizePicker } from 'valyro-ui-pro';
Props
| Prop | Type | Default | |
|---|---|---|---|
options * | SizeOption[] | Sizes in order: "36", "M", "US 8.5". | |
value | string | Selected size (controlled); an empty string means none. | |
defaultValue | string | Initial value when uncontrolled. | |
onValueChange | (value: string) => void | Called with the new value when it changes. | |
name | string | Name of the native radios, so the size submits with a form. | |
layout | 'scroll' | 'wrap' | 'wrap' | scroll: one row that scrolls sideways with faded edges; wrap: rows of tiles. Default wrap. |
variant | 'box' | 'plain' | 'box' | box: tiles; plain: large bare numbers, the selected one bold (a product page). Default box. |
size | 'sm' | 'md' | 'lg' | 'md' | Tile size. Default md. |
Related components
- Color Picker — Color selection
- Swatch Picker — Pick a color from swatches: product, theme, label
- Emoji Picker — Emoji picker: search, categories, skin tones, recents
- Text Input — Text fields
- Textarea — Multiline text input
- Search Input — Search field
- Mentions Input — Text with @mentions and #tags, async suggestions
- Tags Input — Tag entry
- Select — Pick one option from a list
- Multi Select — Pick several options
- Combobox — Searchable select
- Listbox — Option list on the page: one or several, Shift ranges
Previous: Swatch Picker · Next: Emoji Picker · All Forms and input