import type { ValidComponent } from "solid-js"; import { type ElementOf, Polymorphic, type PolymorphicProps, } from "../polymorphic"; export interface AlertRootOptions {} export interface AlertRootCommonProps {} export interface AlertRootRenderProps extends AlertRootCommonProps { role: "alert"; } export type AlertRootProps< T extends ValidComponent | HTMLElement = HTMLElement, > = AlertRootOptions & Partial>>; /** * Alert displays a brief, important message * in a way that attracts the user's attention without interrupting the user's task. */ export function AlertRoot( props: PolymorphicProps>, ) { return ( as="div" role="alert" {...(props as AlertRootProps)} /> ); }