View as Markdown

API reference: @salmonui/notifications/message

Messagefunction

import { Message } from '@salmonui/notifications/message';
function Message(props: MessageProps): ReactElement;

Message. Styling hooks: .salmon-message with data-tone, data-variant, data-align; parts .salmon-message-icon, -body (the title and the children), -title, -action, -dismiss; .salmon-message-live is the live region wrapper. To fit the 0.75 KB budget a data-* hook is written only when its prop is set; the stylesheet applies the defaults.