Alert

Alert component for displaying important messages to users.

import { Alert } from '@document-writing-tools/kernux-react';
 
<Alert
  type="info"
  title="Information"
  content="Please review the following information."
/>
 
<Alert
  type="success"
  title="Success!"
  content="Your changes have been saved."
  href="/dashboard"
  linkText="Go to Dashboard"
/>
 
<Alert type="warning" />  {/* Uses default title */}
<Alert type="danger" content="Something went wrong." />

Props:

Default Titles:

  • info: “Hinweis”
  • success: “Erfolg”
  • warning: “Warnung”
  • danger: “Fehler”