A group of two-state buttons that can be toggled on or off. Supports single select (radio-like) and multi select modes.
Only one item can be active at a time. Click an active item to deselect it.
<div class="sui-toggle-group" data-sui-toggle="single"> <button class="sui-toggle-group-item active" aria-pressed="true">Left</button> <button class="sui-toggle-group-item" aria-pressed="false">Center</button> <button class="sui-toggle-group-item" aria-pressed="false">Right</button> </div>
Multiple items can be active simultaneously.
<div class="sui-toggle-group" data-sui-toggle="multi"> <button class="sui-toggle-group-item active" aria-pressed="true">Bold</button> <button class="sui-toggle-group-item active" aria-pressed="true">Italic</button> <button class="sui-toggle-group-item" aria-pressed="false">Underline</button> <button class="sui-toggle-group-item" aria-pressed="false">Strikethrough</button> </div>
Add sui-toggle-group-outline for a flat bordered style. Active items get a filled primary background.
<!-- Outline single select --> <div class="sui-toggle-group sui-toggle-group-outline" data-sui-toggle="single"> <button class="sui-toggle-group-item active" aria-pressed="true">Day</button> <button class="sui-toggle-group-item" aria-pressed="false">Week</button> <button class="sui-toggle-group-item" aria-pressed="false">Month</button> <button class="sui-toggle-group-item" aria-pressed="false">Year</button> </div> <!-- Outline multi select --> <div class="sui-toggle-group sui-toggle-group-outline" data-sui-toggle="multi"> <button class="sui-toggle-group-item active">S</button> <button class="sui-toggle-group-item">M</button> <button class="sui-toggle-group-item active">T</button> <button class="sui-toggle-group-item">W</button> <button class="sui-toggle-group-item">T</button> <button class="sui-toggle-group-item active">F</button> <button class="sui-toggle-group-item">S</button> </div>
Use sui-toggle-icon on items for square icon-only toggles. Icons use inline SVG.
<!-- Icon-only single select -->
<div class="sui-toggle-group" data-sui-toggle="single">
<button class="sui-toggle-group-item sui-toggle-icon active" aria-pressed="true" aria-label="Align left">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><line x1="2" y1="3" x2="14" y2="3"/><line x1="2" y1="6.5" x2="10" y2="6.5"/><line x1="2" y1="10" x2="14" y2="10"/><line x1="2" y1="13.5" x2="10" y2="13.5"/></svg>
</button>
<button class="sui-toggle-group-item sui-toggle-icon" aria-pressed="false" aria-label="Align center">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><line x1="2" y1="3" x2="14" y2="3"/><line x1="4" y1="6.5" x2="12" y2="6.5"/><line x1="2" y1="10" x2="14" y2="10"/><line x1="4" y1="13.5" x2="12" y2="13.5"/></svg>
</button>
<button class="sui-toggle-group-item sui-toggle-icon" aria-pressed="false" aria-label="Align right">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><line x1="2" y1="3" x2="14" y2="3"/><line x1="6" y1="6.5" x2="14" y2="6.5"/><line x1="2" y1="10" x2="14" y2="10"/><line x1="6" y1="13.5" x2="14" y2="13.5"/></svg>
</button>
</div>
<!-- Icon multi select (Bold / Italic / Underline) -->
<div class="sui-toggle-group" data-sui-toggle="multi">
<button class="sui-toggle-group-item sui-toggle-icon active" aria-pressed="true" aria-label="Bold">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M4 2h5a3.5 3.5 0 0 1 .5 6.96A3.5 3.5 0 0 1 10 16H4V2zm2 2v4h3a1.5 1.5 0 1 0 0-3H6zm0 6v4h4a1.5 1.5 0 1 0 0-3H6z"/></svg>
</button>
<button class="sui-toggle-group-item sui-toggle-icon" aria-pressed="false" aria-label="Italic">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M6 2h6v2h-2.2l-2.6 8H9v2H3v-2h2.2l2.6-8H6V2z"/></svg>
</button>
<button class="sui-toggle-group-item sui-toggle-icon active" aria-pressed="true" aria-label="Underline">
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M4 2v6a4 4 0 0 0 8 0V2h2v6a6 6 0 0 1-12 0V2h2zM2 15h12v1.5H2V15z"/></svg>
</button>
</div>Add sui-toggle-group-sm or sui-toggle-group-lg for size variants.
<!-- Small --> <div class="sui-toggle-group sui-toggle-group-sm" data-sui-toggle="single"> <button class="sui-toggle-group-item active">Option A</button> <button class="sui-toggle-group-item">Option B</button> </div> <!-- Default --> <div class="sui-toggle-group" data-sui-toggle="single"> <button class="sui-toggle-group-item active">Option A</button> <button class="sui-toggle-group-item">Option B</button> </div> <!-- Large --> <div class="sui-toggle-group sui-toggle-group-lg" data-sui-toggle="single"> <button class="sui-toggle-group-item active">Option A</button> <button class="sui-toggle-group-item">Option B</button> </div>
Add sui-toggle-group-vertical to stack items vertically.
<div class="sui-toggle-group sui-toggle-group-vertical" data-sui-toggle="single"> <button class="sui-toggle-group-item active">List View</button> <button class="sui-toggle-group-item">Grid View</button> <button class="sui-toggle-group-item">Board View</button> </div>
Add disabled to individual items to prevent interaction.
<div class="sui-toggle-group" data-sui-toggle="single"> <button class="sui-toggle-group-item active">Available</button> <button class="sui-toggle-group-item">Available</button> <button class="sui-toggle-group-item" disabled>Unavailable</button> </div>
This is a neumorphic modal dialog. It features backdrop blur, smooth animations, and focus trap. Press Escape or click outside to close.
Your session will expire in 5 minutes. Would you like to stay signed in?
This action cannot be undone. This will permanently delete the item and remove all associated data.
This modal takes up the entire viewport. Useful for immersive content, editors, or media viewers.
Press Escape or click the close button to dismiss.
By accessing and using this service, you accept and agree to be bound by the terms and provision of this agreement. In addition, when using these particular services, you shall be subject to any posted guidelines or rules applicable to such services. Any participation in this service will constitute acceptance of this agreement.
Permission is granted to temporarily download one copy of the materials on this website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not modify or copy the materials, use the materials for any commercial purpose, attempt to reverse engineer any software, or remove any copyright notations.
The materials on this website are provided on an 'as is' basis. We make no warranties, expressed or implied, and hereby disclaim and negate all other warranties including, without limitation, implied warranties or conditions of merchantability, fitness for a particular purpose, or non-infringement of intellectual property.
In no event shall this company or its suppliers be liable for any damages (including, without limitation, damages for loss of data or profit, or due to business interruption) arising out of the use or inability to use the materials, even if we have been notified orally or in writing of the possibility of such damage.
The materials appearing on this website could include technical, typographical, or photographic errors. We do not warrant that any of the materials on its website are accurate, complete or current. We may make changes to the materials contained on its website at any time without notice.
We have not reviewed all of the sites linked to this website and are not responsible for the contents of any such linked site. The inclusion of any link does not imply endorsement. Use of any such linked web site is at the user's own risk.
We may revise these terms of service for this website at any time without notice. By using this website you are agreeing to be bound by the then current version of these terms of service. Any changes will be posted on this page with an updated revision date.
These terms and conditions are governed by and construed in accordance with applicable laws and you irrevocably submit to the exclusive jurisdiction of the courts in that location. If any provision of these terms shall be unlawful, void, or unenforceable, then that provision shall be deemed severable and shall not affect the validity of the remaining provisions.
Clicking outside this modal won't close it. Instead, the modal will shake to indicate it requires explicit action. Use the close button or press Escape to dismiss.
This is a default right-side sheet. It slides in from the right edge of the screen with a blurred backdrop.
Sheets are great for navigation menus, settings panels, detail views, and forms that don't need to interrupt the main content flow.
This sheet slides down from the top. Great for announcements, notification panels, or search interfaces.
This is a small (280px) right-side sheet.
This is a large (480px) right-side sheet. Great for forms, detail views, or complex content.
Clicking outside this sheet won't close it. The sheet will shake to indicate it requires explicit action. Use the close button or press Escape.