Inline alerts display a non-modal message associated with objects in a view.
These are often used in form validation, providing a place to aggregate feedback related to multiple fields.
<InlineAlert><Heading>Payment Information</Heading><Content>
Enter your billing address, shipping address, and payment method to
complete your purchase.
</Content></InlineAlert>
<InlineAlert><Heading>Payment Information</Heading><Content>
Enter your billing address, shipping address, and
payment method to complete your purchase.
</Content></InlineAlert>
<InlineAlert><Heading>
Payment Information
</Heading><Content>
Enter your billing
address, shipping
address, and
payment method to
complete your
purchase.
</Content></InlineAlert>
Inline alerts contain a title and body. They also include an icon for non-neutral variants.
<InlineAlertvariant="positive"><Heading>Payment Information</Heading><Content>
Enter your billing address, shipping address, and payment method to
complete your purchase.
</Content></InlineAlert>
<InlineAlertvariant="positive"><Heading>Payment Information</Heading><Content>
Enter your billing address, shipping address, and
payment method to complete your purchase.
</Content></InlineAlert>
<InlineAlertvariant="positive"><Heading>
Payment Information
</Heading><Content>
Enter your billing
address, shipping
address, and
payment method to
complete your
purchase.
</Content></InlineAlert>
To internationalize an InlineAlert, localized strings should be set as the title and body content of the InlineAlert.
For languages that are read right-to-left (e.g. Hebrew and Arabic), the InlineAlert is automatically flipped.
When inline alerts have a semantic meaning, they should use the appropriate variant.
The default variant is neutral, and should be used when the message is neutral in tone or when its semantics do not fit any of the other variants.
<InlineAlertvariant="info"><Heading>Accepted Payment Methods</Heading><Content>
Only major credit cards are accepted for payment. Direct debit is
currently unavailable.
</Content></InlineAlert>
<InlineAlertvariant="info"><Heading>Accepted Payment Methods</Heading><Content>
Only major credit cards are accepted for payment.
Direct debit is currently unavailable.
</Content></InlineAlert>
<InlineAlertvariant="info"><Heading>
Accepted Payment
Methods
</Heading><Content>
Only major credit
cards are accepted
for payment. Direct
debit is currently
unavailable.
</Content></InlineAlert>
<InlineAlertvariant="positive"><Heading>Purchase completed</Heading><Content>
You'll get a confirmation email with your order details shortly.
</Content></InlineAlert>
<InlineAlertvariant="positive"><Heading>Purchase completed</Heading><Content>
You'll get a confirmation email with your order
details shortly.
</Content></InlineAlert>
<InlineAlertvariant="positive"><Heading>
Purchase completed
</Heading><Content>
You'll get a
confirmation email
with your order
details shortly.
</Content></InlineAlert>
<InlineAlertvariant="notice"><Heading>Update payment information</Heading><Content>
The saved credit card for your account has expired. Update your payment
information to complete the purchase.
</Content></InlineAlert>
<InlineAlertvariant="notice"><Heading>Update payment information</Heading><Content>
The saved credit card for your account has expired.
Update your payment information to complete the
purchase.
</Content></InlineAlert>
<InlineAlertvariant="notice"><Heading>
Update payment
information
</Heading><Content>
The saved credit
card for your
account has
expired. Update
your payment
information to
complete the
purchase.
</Content></InlineAlert>
<InlineAlertvariant="negative"><Heading>Unable to process payment</Heading><Content>
There was an error processing your payment. Please check that your credit
card information is correct, then try again.
</Content></InlineAlert>
<InlineAlertvariant="negative"><Heading>Unable to process payment</Heading><Content>
There was an error processing your payment. Please
check that your credit card information is correct,
then try again.
</Content></InlineAlert>
<InlineAlertvariant="negative"><Heading>
Unable to process
payment
</Heading><Content>
There was an error
processing your
payment. Please
check that your
credit card
information is
correct, then try
again.
</Content></InlineAlert>