Skip to content

Source code

Buttons

Choose a button for an action and a link for navigation.

Start with your first page. Shared ui* providers are registered by createAdmin. Examples belong inside a route template, not the root HTML document. The page and its optional controller load through Atrium’s lazy route registry.

Minimal example

<button type="button" class="btn btn-primary" @click="$store.toasts.push('Saved')">Save</button>
<button type="button" class="btn btn-secondary" disabled>Unavailable</button>
<a class="btn btn-outline-primary" :href="href('/resources')" x-link>Browse resources</a>

Settings and behavior

  • Variants include primary, secondary, success, danger, warning, info, outline variants, and ghost.
  • Use btn-sm or btn-lg for size and icon-button for square icon controls.
  • Use disabled for unavailable actions and aria-pressed for toggle buttons.
  • Add type=“button” inside forms unless the control submits the form.

Integration notes

Use theme tokens instead of fixed colors. Keep accessible labels on controls. Test with keyboard navigation, both themes, and a narrow RTL viewport.

Working reference

See the production example. Return to the component index.

Author

Laurent Declercq l.declercq@agon-innovation.ch

License

Unless otherwise stated all source code is licensed under LGPL 2.1 and has the following copyright:

© 2026, Agon Partners Innovation AG, All rights reserved.

The design material and the “Agon Ātrium” trademark is the property of their authors. Reuse of them without prior consent of their respective authors is strictly prohibited.

Version

Version: 20260921