AButtonNavigation component is an atom that provides navigation functionality with an icon button. It supports routing, back navigation, and custom click handlers.
Props
Icon to display in the button. Supports any icon from the configured icon sets.
Route path to navigate to when clicked. Uses Vue Router’s push method.
Whether to perform a back action and go to the previous route using router.back()
Size of the button. Options:
xs, sm, md, lg, xlEvents
Emitted when the button is clicked, regardless of whether the route is changed or not
Usage
Basic Navigation
Back Navigation
Custom Icon
Click Handler Only
Type Exports
The component exports the following type:Behavior
The click handler follows this priority:- If
toprop is provided, navigates to that route - Else if
hasBackActionis true, goes back to previous route - Always emits
on-clickevent regardless of navigation
Styling
The button is rendered with:- Variant:
icon(no background by default) - Color:
neutral - Icon size adapts to the
sizeprop
/home/daytona/workspace/source/app/components/a/button/a-button-navigation.vue:56