Banner
Dismissible site-wide notification bar.
Generated from the package's public source.
API
Closecomponent
Close(props: CloseProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
ClosePropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
Contentcomponent
Content(props: ContentProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element
ContentPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
Rootcomponent
Root(props: RootProps): Element
Props
class?stringdefaultOpen?boolean— Default open state for uncontrolled usage.dismissible?boolean— Whether the banner can be dismissed.onDismiss?() => void— Callback when dismiss state changes.open?Accessor<boolean | undefined>— Controlled open state.style?string | CSSPropertiesvariant?"info" | "success" | "warning" | "error"— Visual variant.
children: Element
RootPropsinterface
Props
class?stringdefaultOpen?boolean— Default open state for uncontrolled usage.dismissible?boolean— Whether the banner can be dismissed.onDismiss?() => void— Callback when dismiss state changes.open?Accessor<boolean | undefined>— Controlled open state.style?string | CSSPropertiesvariant?"info" | "success" | "warning" | "error"— Visual variant.
children: Element