To use NoticeBox
, you can import the component from the @dhis2/ui
library
import { NoticeBox } from '@dhis2/ui'
Name | Type | Default | Required | Description |
---|---|---|---|---|
children | node | |||
className | string | |||
dataTest | string | 'dhis2-uicore-noticebox' |
||
error | custom | Applies 'error' message styles. Mutually exclusive with the valid and warning props |
||
title | string | |||
valid | custom | Applies 'valid' message styles. Mutually exclusive with the error and warning props |
||
warning | custom | Applies 'warning' message styles. Mutually exclusive with the error and valid props |