A section message displays a contextual feedback message in a particular section of the page. They’re persistent and nonmodal. It can include a dismiss button, allowing the user to either ignore them or interact with them at any time.
<SectionMessage><SectionMessage.Icon/><SectionMessage.Content><SectionMessage.Title>Title message</SectionMessage.Title><SectionMessage.Description> This is the description</SectionMessage.Description></SectionMessage.Content><SectionMessage.Dismiss/></SectionMessage>
Theme
These are the available themes for this component: success, warning, error, neutral and info. The default is info (due to most frequent context).
<divclassName="flex gap-3 flex-col w-[325px]"><SectionMessagetheme="error"><SectionMessage.Icon/><SectionMessage.Content><SectionMessage.Title>Title message</SectionMessage.Title><SectionMessage.Description> This is the description</SectionMessage.Description></SectionMessage.Content><SectionMessage.Dismiss/></SectionMessage><SectionMessagetheme="warning"><SectionMessage.Icon/><SectionMessage.Content><SectionMessage.Title>Title message</SectionMessage.Title><SectionMessage.Description> This is the description</SectionMessage.Description></SectionMessage.Content><SectionMessage.Dismiss/></SectionMessage><SectionMessagetheme="success"><SectionMessage.Icon/><SectionMessage.Content><SectionMessage.Title>Title message</SectionMessage.Title><SectionMessage.Description> This is the description</SectionMessage.Description></SectionMessage.Content><SectionMessage.Dismiss/></SectionMessage><SectionMessagetheme="info"><SectionMessage.Icon/><SectionMessage.Content><SectionMessage.Title>Title message</SectionMessage.Title><SectionMessage.Description> This is the description</SectionMessage.Description></SectionMessage.Content><SectionMessage.Dismiss/></SectionMessage><SectionMessagetheme="neutral"><SectionMessage.Icon/><SectionMessage.Content><SectionMessage.Title>Title message</SectionMessage.Title><SectionMessage.Description> This is the description</SectionMessage.Description></SectionMessage.Content><SectionMessage.Dismiss/></SectionMessage></div>
Composition
SectionMessage ships with smaller components to allow for flexibility in creating all kinds of layouts.
Note that elements contained within SectionMessage.Content will be displayed inline if there is enough space and automatically wrap when there isn't.
<SectionMessageclassName="w-125"><SectionMessage.Icon/><SectionMessage.Content><SectionMessage.Title>Title message</SectionMessage.Title><SectionMessage.Description> This is the description</SectionMessage.Description></SectionMessage.Content><SectionMessage.Actions><Buttonsize="sm">Button</Button><Buttonsize="sm"appearance="outline"> Button</Button></SectionMessage.Actions><SectionMessage.Dismiss/></SectionMessage>