API reference
components/icon-radio
Import
Section titled “Import”import * as api from "@fungi.computer/caps/components/icon-radio";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | IconRadioProps | Props accepted by IconRadio. Use it inside the existing RadioGroup. |
| constant | IconRadio | One icon choice in a native, mutually exclusive Caps RadioGroup. |
IconRadioPropstype alias
Section titled “IconRadioProps”type IconRadioProps = object & Omit<RadioGroupItemProps, "children" | "indicator">;Props accepted by IconRadio. Use it inside the existing RadioGroup.
Type Declaration
Section titled “Type Declaration”| Name | Type | Description |
|---|---|---|
label |
string |
- |
icon |
ReactNode |
- |
caption? |
string |
A short visible legend; it does not replace the accessible label. |
IconRadioconstant
Section titled “IconRadio”const IconRadio: ForwardRefExoticComponent< object & Omit<RadioGroupItemProps, "children" | "indicator"> & RefAttributes<HTMLInputElement>>;One icon choice in a native, mutually exclusive Caps RadioGroup.