// AUTO-GENERATED by scripts/generate-wrappers.mjs — do not edit by hand. // Source: packages/core/manifest.json (component "alert"). import type { ElementType, ReactNode } from 'react'; import { Alert as AlertController, type AlertOptions } from '@42/core/alert'; import { C42 } from '../C42'; const DEFAULT_HTML: string | null = "\n
\n Heads up\n

Your trial ends soon.

\n
\n "; export interface AlertProps extends Partial { /** Element/tag rendered as the controller root. Defaults to `"div"`. */ as?: ElementType; className?: string; children?: ReactNode; /** Fired on `alert:dismiss` — detail: `{ variant }` */ onDismiss?: (detail: unknown, event: CustomEvent) => void; /** Extra props are forwarded to the rendered `
` element. */ [key: string]: unknown; } export function Alert(props: AlertProps) { const { as, className, children, onDismiss, variant, role, ...rest } = props; const options = { variant, role } as AlertOptions; return ( {children as ReactNode} ); }