Skip to main content

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

EnumDescription
FormNotice.TypesNotice types
PRIMARY | DANGER | WARNING | SUCCESS | BRAND | CUSTOM

Props

NameTypeDefaultDescription
alignFlex.AlignFlex.Align.STARTFlexbox align
body* ReactNodeNotice description
buttonReactNodeButton component
classNamestringComponent class name
iconClassNamestringIcon element class name
imageDataImageDataObject that includes the information needed to display an image in the notice
styleCSSPropertiesComponent style
titleReactNodeNotice title
typeFormNotice.TypesFormNotice.Types.DANGERNotice type

Types

ImageData

NameTypeDefaultDescription
height* numberImage height
positionstringleftPosition of the image; left or right
src* stringImage source path
width* numberImage width