States
Menu - Open
Trial Header with Open Menu
Your trial expires in 14 days
Additional Variations
Urgent State (3 days remaining)
Your trial expires in 3 days
Success State (Subscription Active)
Your subscription is active
Interactive Controls
Component Structure
Basic Trial Header Structure
<div class="slds-trial-header"> <div class="slds-trial-header__content"> <div class="slds-trial-header__info"> <svg class="slds-icon slds-icon_small" aria-hidden="true"> <use href="#info"></use> </svg> <span class="slds-trial-header__text"> Your trial expires in <span class="slds-trial-header__days">14 days</span> </span> </div> <div class="slds-trial-header__actions"> <button class="slds-button slds-button_outline-inverse slds-button_small"> Extend Trial </button> <button class="slds-button slds-button_brand slds-button_small"> Subscribe Now </button> </div> </div> <div class="slds-trial-progress"> <div class="slds-trial-progress__bar" style="width: 60%;"></div> </div></div>
Usage Guidelines
Implementation Notes
- Trial bars should be prominently displayed at the top of the application
- Use progressive disclosure with the dropdown menu for additional actions
- Progress bar should reflect the remaining trial time
- Color coding helps indicate urgency (blue = normal, orange/red = urgent, green = success)
- Ensure all interactive elements are keyboard accessible