Develop ultra fast with Prismane 🎉

Alert API

Learn about the Alert component's props and CSS classes.

Import

import {
  AlertProps,
  AlertTitleProps,
  AlertDescriptionProps,
} from "@prismane/core";

Props

Alert

Alert extends Flex and Animation components' props.

NameTypeDescriptionDefault
variantinfo / warning / error / successThe variant of the alert.info
iconReactNodeThe icon of the alert.Based on variant
actionReactNodeThe custom action of the alert.-
closablebooleanThe boolean that triggers if the alert can be closed.-

Alert.Title

Alert.Title extends Text component's props.

Alert.Description

Alert.Description extends Text component's props.

CSS

Alert

Alert extends Flex and Animation components' CSS classes.

RuleGlobal ClassDescription
root.PrismaneAlert-rootThe wrapper box of the alert.
root.PrismaneAlert-root-{variant}The wrapper box of the alert based on alert's variant.
icon.PrismaneAlert-iconThe wrapper box of the alert's icon.
icon.PrismaneAlert-icon-{variant}The wrapper box of the alert's icon based on alert's variant.
text.PrismaneAlert-textThe wrapper box of the alert's text.
text.PrismaneAlert-text-{variant}The wrapper box of the alert's text based on alert's variant.
action.PrismaneAlert-actionThe wrapper box of the alert's action.
action.PrismaneAlert-action-{variant}The wrapper box of the alert's action based on alert's variant.

Alert.Title

Alert.Title extends Text component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneAlertTitle-rootThe wrapper box of the accordion control.

Alert.Description

Alert.Description extends Text component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneAlertDescription-rootThe wrapper box of the accordion icon.