Selectable
A selectable option component with icon and description support
Selectable
A component that displays a selectable option with an icon, title, and optional description.
Import
Props
Prop | Type | Default | Description |
---|---|---|---|
title | string | Required | The title text of the selectable option |
description | string | — | Optional description text |
icon | IconName | Required | Icon to display with the option |
iconColor | string | — | Custom color for the icon |
selected | boolean | false | Whether the option is selected |
onPress | () => void | — | Function called when option is pressed |
error | string | — | Error message to display |
className | string | — | Additional classes for the option |
containerClassName | string | — | Additional classes for the container |