SubComponents
Item
This component extends the native <div>
API. This is the parent component of the Description/NestedContent subcomponents.
Item API
children
ReactNode
✅
hasError
boolean
❌
isDisabled
boolean
❌
value
string
❌
image
string
❌
imageLayout
'left' | 'top'
❌
controlType
'checkbox' | 'radio'
❌
hideControl
boolean
❌
onCheck
(e: ChangeEvent) => void
❌
Description
The description subcomponent controls the structure rendered inside. This component extends the native <div>
API.
Description API
children
ReactNode
✅
NestedContent
The subcomponent can be used to render actions or extra actions below the content.
NestedContent API
The content subcomponent controls the structure rendered below, when checked, almost like an accordion.
children
ReactNode
✅
HelpText
The HelpText subcomponent extends the SDS HelpText component. See for reference: HelpText
Label
The Label subcomponent extends the SDS label component. See for reference: Label
Last updated