UNPKG

oui-kit

Version:
18 lines (13 loc) 521 B
# oui-notice A prominent overlay containing a message, suitable e. g. for warning messages. It covers everything up to parent element with `position: relative`. If icon is used, it should be an SVG. - `title?: string` - `#default` Message - `#title` Title (alternative to prop `title`) - `#icon` SVG Icon It is possible to set CSS variable `--notice-fg` for the icon color. ```vue <OuiNotice title="Warning" style="--notice-fg: red"> <template #icon><OuiClose></template> You should not do that! </OuiNotice> ```