Inputs & Forms
MonthPicker
client37.25 kB
@stellaria/nebula-webMonthPickerPropsPreview
Props
14| Prop | Type | Default |
|---|---|---|
className | string | — |
color | ColorExtended | "primary" |
defaultValue | string | "" |
disabled | boolean | false |
field | NebulaField<string> | — |
label | ReactNode | — |
labels | PeriodPickerLabels | — |
locale | string | — |
maxValue | string | "" |
minValue | string | "" |
onChange | ((value: string) => void) | — |
size | Size | "md" |
value | string | — |
variant | CalendarVariant | "filled" |
Slot props
1Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
cellProps Every cell in the grid. It spreads over ALL of them: the component generates them — the twelve months of the visible year, or the page of years — not composition; `minValue` and `maxValue` only decide which end up disabled. It is a `div` with `role="option"`, so it is typed as a `div`. | BoxSlotProps | — |
Also accepts
On top of its own props, this component forwards these groups.
Style props · 127