Callout
Examples
Variations:
Critical
An example of a callout that contains relevant information to convey to the user.
Warning
An example of a callout that contains relevant information to convey to the user.
Information
An example of a callout that contains relevant information to convey to the user.
Neutral
An example of a callout that contains relevant information to convey to the user.
Code
1<Callout variation="critical">...</Callout>2<Callout variation="warning">...</Callout>3<Callout variation="information">...</Callout>4<Callout variation="neutral">...</Callout>
With a heading:
Heading content display with prominence
An example of a callout that contains relevant information to convey to the user.
Code
1<Callout variation="critical" heading="Heading content display with prominence">...</Callout>
Different sizes:
Heading content display with prominence
An example of a callout that contains relevant information to convey to the user.
Heading content display with prominence
An example of a callout that contains relevant information to convey to the user.
Heading content display with prominence
An example of a callout that contains relevant information to convey to the user.
Code
1<Callout variation="information" size="small" heading="Heading content display with prominence">...</Callout>2<Callout variation="information" heading="Heading content display with prominence">...</Callout>3<Callout variation="information" size="large" heading="Heading content display with prominence">...</Callout>
Maximum width set:
Default is for a maximum width of 80 characters for optimal readability.
80 characters
An example of a callout that contains relevant information to convey to the user.
Width 100%
An example of a callout that contains relevant information to convey to the user.
Code
1<Callout variation="warning">...</Callout>2<Callout variation="warning" maxWidth="none">...</Callout>
With actions:
There is an upcoming payment on your account due 23rd August, to avoid a late payment fee you can:
Code
1<Callout variation="warning">2 <Text as="p">There is an upcoming payment on your account due 23rd August, to avoid a late payment fee you can:</Text>3 <Divider />4 <Cluster gap="--s0">5 <Button onClick={() => {}} variation="secondary" borderWidth="small">Send me a reminder</Button>6 <Button onClick={() => {}} variation="primary">Make payment now</Button>7 </Cluster>8</Callout>