Alert
A box that sets a short message apart from the page, in one row with an icon before it and an action after it when it needs them, in its tone's colour, info by default.
Usage
Examples
Tones
tone sets the colour, info by default, accent, destructive, success or warning, each a light fill with its own line and words, as a badge is, and never a grey one.
Sizes
size sets the height, the side padding, the words and the icon as a button's: sm 32px tall, 8px in, with 12px words, base 40px, 12px in, with 14px words (the default), or lg 48px, 16px in, with 16px words; a small button beside the words fits without growing it, and an action's spacing follows.
Border radius
borderRadius sets the corners on the kit's one scale: none, xs 4px, sm 6px, base 8px, lg 12px (the default) or xl 16px.
With icon
An Icon as the first child sits before the title, centred on it, in the tone's colour.
Action
AlertAction sets a Link at the end of the row, underlined on hover, a button when it only acts and an address when it leads somewhere, centred on the title, which wraps before it.
API Reference
Alert
AlertProps · components/Alert/Alert.types.tsAlertTitle
AlertTitleProps · takes the props of <div>AlertAction
AlertActionProps · takes the props of <div>It also takes the props of <div>.