Components
InputCard
Primitive selectable card used as the base for RadioCard and CheckboxCard.
Purely presentational - the parent owns selected and click handling.
Selection and disabled states are exposed as data-selected/data-disabled
for styling.
Usage
Best practices
InputCardis a presentational primitive - the parent ownsselectedand click handling; for real form semantics useRadioCardGroup/CheckboxCardGroup, which build on it.Drive the selected look via the
selectedprop (it setsdata-selected+ the primary tint), not by appending your own active classes.Use
renderto project the card styling onto a real interactive element (e.g. a<label>wrapping an input) when you need native selection behaviour.
Props
InputCard
InputCardIcon
Also exports
- const
getInputCardIconSize - const
INPUT_CARD_ICON_SIZE - const
inputCardBaseStyles - interface
InputCardProps - const
inputCardSelectedStyles - const
inputCardSizeStyles
Composition
Builds on
Used by