|
|
|
@ -22,6 +22,6 @@ Segmented Controls. This component is available since `antd@4.20.0`.
|
|
|
|
|
| defaultValue | Default selected value | string \| number | | |
|
|
|
|
|
| disabled | Disable all segments | boolean | false | |
|
|
|
|
|
| onChange | The callback function that is triggered when the state changes | function(value: string \| number) | | |
|
|
|
|
|
| options | Set children optional | string\[] \| number\[] \| Array<{ label: string value: string icon? ReactNode disabled?: boolean className?: string }> | [] | |
|
|
|
|
|
| options | Set children optional | string\[] \| number\[] \| Array<{ label: ReactNode value: string icon? ReactNode disabled?: boolean className?: string }> | [] | |
|
|
|
|
|
| size | The size of the Segmented. | `large` \| `middle` \| `small` | - | |
|
|
|
|
|
| value | Currently selected value | string \| number | | |
|
|
|
|
|