Inline Banner
ember install @freshworks/inline-banner
Inline messages are those which stay in the screen for a limited period of time and leave with no or minimal user interaction. It provides additional information to the context of the page.
Usage
{{nucleus-inline-banner
type="warning"
title="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
onClose=(action "onClose")
}}
Playground
Properties
{{nucleus-inline-banner
type="warning"
title="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt."
isDismissible="true"
}}
Usecases
1.Custom content
{{#nucleus-inline-banner type="warning" as |banner|}}
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim blandit volutpat maecenas volutpat.</p>
<a class="docs-link" href="#">Click here</a>
{{/nucleus-inline-banner}}
Guidelines
✅Do's
When used in a form, in-line messages are used at the bottom before the CTA button. However, based on the content, it can be placed above as well.
Follow the character limit guidelines mentioned in Typography.
🚫Dont's
Do not include buttons in an in-line message.
Do not include many user interactions in an in-line message.
Do not block the user flow. It should only be a notification component and not ask for mandatory user interactions.