An Infobox informs users of important information of a higher hierarchy. They are non-dismissable, and are not triggered by user action.
Use the size prop to change the size of the infobox. Defaults to md.
Use the variant prop to change the visual style and semantic meaning of the Infobox. Defaults to info.
By default, Infobox displays an appropriate icon based on the variant prop. You can override this by providing a custom icon using the icon prop.
You can hide the icon by setting icon to null.
Infobox supports rich content including formatted text, lists, and multiple paragraphs. The icon will stay aligned at the top while content wraps naturally.
Infobox has the following slots:
base: The main container elementicon: The icon element (default or custom)You can customize the Infobox component by passing custom Tailwind CSS classes to the component slots using the classNames prop.