Components
Alert

Alert

The Alert component is used to display alert messages with different styles and statuses.

Props

NameTypeDefaultDescription
titlestring | React.ReactNode | React.ReactElementThe title of the alert.
childrenstring | React.ReactNode | React.ReactElementThe content of the alert.
iconstring | React.ReactElementThe icon to display in the alert.
suffixstring | JSX.Element | React.ReactNodeThe suffix element to display in the alert.
successbooleanfalseDetermines whether the alert has a success status.
warningbooleanfalseDetermines whether the alert has a warning status.
errorbooleanfalseDetermines whether the alert has an error status.

Try It

import { Alert } from '@kloktun/uikit'

export default function Page() {
  return (
    <Alert>Example text</Alert>
  )
}