Notice

Notice

Source:
Tutorials:
  • Tutorial: `src\stories\Notice.stories.js`.
Properties:
Name Type Description
cancelFunc function

Cancel button function.

cancelText string

Cancel button text.

children

Child elements to nest in notice (e.g., the message).

header string

Header text for notice component.

inputPlaceholder string

Placeholder for input of notice component.

okayFunc function

Okay button function.

okayText string

Okay button text.

setShow function

Function which accepts a boolean of whether to show notice.

show boolean

Boolean associated with the setShow function described above.

type string

type of notice being used (e.g., "alert", "confirm", or "prompt").

variant string

Variant of notices to use (e.g., "alt-icons").

Default styled alert, confirm, and prompt notification components.