logonpix

Alert

Example
Props

Type

Title

Installation
npx npix@latest add Alert
Usage
<div className="w-full">
  <Alert
    title="Success!"
    type="success"
  >
    Payment successful.
  </Alert>
</div>
API

title

string

Title of the alert


type

'success' | 'warning' | 'info' | 'danger

Type of the alert


children

React.ReactNode

Alert body


FieldDescriptionType
titleTitle of the alertstring
typeType of the alert'success' | 'warning' | 'info' | 'danger
childrenAlert bodyReact.ReactNode