FormNotice
caution
All props/parameters are optional unless they are marked with an asterisk ( * ).
Example
import { components } from "replugged";
const { FormNotice } = components;
<FormNotice title="Foo" body="This is a description" type={FormNotice.Types.PRIMARY} />;
Enums
Enum | Description |
---|---|
FormNotice.Types | Notice types PRIMARY | DANGER | WARNING | SUCCESS | BRAND | CUSTOM |
Props
Name | Type | Default | Description |
---|---|---|---|
align | Flex.Align | Flex.Align.START | Flexbox align |
body | * ReactNode | Notice description | |
button | ReactNode | Button component | |
className | string | Component class name | |
iconClassName | string | Icon element class name | |
imageData | ImageData | Object that includes the information needed to display an image in the notice | |
style | CSSProperties | Component style | |
title | ReactNode | Notice title | |
type | FormNotice.Types | FormNotice.Types.DANGER | Notice type |
Types
ImageData
Name | Type | Default | Description |
---|---|---|---|
height | * number | Image height | |
position | string | left | Position of the image; left or right |
src | * string | Image source path | |
width | * number | Image width |