Alerts


Use Alert for information that should stand apart from the main prose. Alerts are useful for generated-file warnings, compatibility notes, and important setup constraints.

MDX
import { Alert } from '@unterberg/nivel'
 
<Alert type="warning" heading="Do not edit generated pages">
  Generated pages can be rewritten by `nivel prepare`.
</Alert>

Variants

Info
Use info alerts for helpful context.
Warning
Use warning alerts for sharp edges and generated files.
Success
Use success alerts for completed setup states.
Error
Use error alerts for invalid usage or broken configuration.

See Generated Pages for a practical warning example.