Radiomark
A visual indicator used to show selected and unselected radio states
Usage
import { Radiomark } from "@chakra-ui/react"<Radiomark checked />Examples
States
The Radiomark component supports checked and unchecked states, with optional disabled state.
Variants
Use the variant prop to change the visual style of the radiomark.
Sizes
Use the size prop to change the size of the radiomark.
Colors
Use the colorPalette prop to change the color scheme of the radiomark.
Filled
Use the filled prop with the outline variant to add a background color to
the radiomark.
Props
| Prop | Default | Type |
|---|---|---|
colorPalette | gray | 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink'The color palette of the component |
variant | solid | 'solid' | 'subtle' | 'outline' | 'inverted'The variant of the component |
size | md | 'xs' | 'sm' | 'md' | 'lg'The size of the component |
checked | boolean | undefinedWhether the checkmark is checked | |
disabled | boolean | undefinedWhether the checkmark is disabled | |
as | React.ElementTypeThe underlying element to render. | |
asChild | booleanUse the provided child element as the default rendered element, combining their props and behavior. For more details, read our Composition guide. |