@codecraftkit
Documentation
The Alert Info component is a message box that is mean to give useful information or warnings to the user.
This component is based on Alert
it can be imported from the core.
import { AlertInfo } from "@codecraftkit/core";
or alone.
import AlertInfo from "@codecraftkit/alert-info";
A simple alert box with a text an icon
<AlertInfotitle='Hello World'body="Good Morning, I am an info Alert"/>
status
info
warning
success
error
no
info
The status of the alert, this changes its color and icon
title
String
no
The alert Title, this will appear bold
body
String
React Component
no
The content of the alert
children
React Component
no
The content of the alert, but you can use the children prop
variant
solid
subtle
left-accent
top-accent
yes
Call when the component is closing
onClose
Function
no
Function that activates when the user closes the alert it also shows a close Icon
orientation
vertical
horizontal
no
horizontal
Changes the alert orientation
noIcon
Boolean
no
false
Hide the icon
styles
styles<object>
no
Apply custom styles for the alert itself
titleStyles
styles<object>
no
Apply custom styles for the alert title
bodyStyles
styles<object>
no
Delete
Apply custom styles for the alert body
iconStyles
styles<object>
no
false
Apply custom styles for the alert icon