ns-button
Overview
The ns-button component wraps button styling used by NexoPOS dashboard views. It renders a native button by default and an anchor when href is provided.
Props
type: style type applied as a class. Defaults todefault.disabled: disables the button when truthy or equal todisabled.href: renders an anchor instead of a button.target: target attribute for anchor rendering.link,routerLink, andto: reserved compatibility props in the component API.
Usage
<ns-button type="info" @click="save">Save</ns-button>
<ns-button type="default" href="/dashboard/products">Products</ns-button>
<ns-button type="error" :disabled="isSubmitting">Delete</ns-button>
Use the default slot for the visible label or icon content. When href is present, attach navigation-related attributes to the component instead of the slot content.