ListChoice

ListChoice

import ListChoice from "@kiwicom/orbit-components/lib/ListChoice";
<ListChoice title="My Choice" />

Props

NameTypeDefaultDescription
dataTeststringOptional prop for testing purposes.
idstringSet id for ListChoice.
descriptionTranslationThe additional info about the ListChoice.
disabledbooleanfalseIf true, the ListChoice won’t perform any onClick action and if selectable is set to true, the check box glyph will use disabled state.
iconReact.NodeThe icon on the left of the ListChoice.
onClickevent => void \| PromiseFunction for handling onClick event.
selectablebooleanfalseIf true, the check box glyph appears on the right size and it will be possible to select the ListChoice.
selectedbooleanfalseIf true, the check box glyph will be checked.
titleTranslationThe title of the ListChoice.
actionReact.NodeArea for action elements, like Button.
rolestringbuttonRole of the ListChoice. By default is button, if selectable is true and role prop is not set, the role changes to checkbox.
tabIndexnumber0Specifies the tab order of an element.