Legal Accordion
import { Legal } from '@sky-uk/ui-sections';
Example
The Legal
accordion features predefined markdown rendering.
Props
Props marked with ?
are optional. Sections or section elements that do not provide the required props will not render.
The data
prop support key/value pairs that are rendered as kebab case data attributes on the component.
- body:
string
- data?:
object
- heading:
string
- onOpen?:
() => void
- onClose?:
() => void