To use Legend, you can import the component from the @dhis2/ui library
import { Legend } from '@dhis2/ui'| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| children | node | |||
| className | string | |||
| dataTest | string | 'dhis2-uicore-legend' |
||
| required | boolean | Indicates the associated field set is required |