Skip to content

Button - Frameworks

Buttons initiate events or actions within a page, informing users of what to expect next.

AndroidreleasedElementsreleasediOSreleasedReactreleasedReact 19releasedVuereleased

Vue

Import

Use in entire app

js
import { Button } from '@warp-ds/vue';
app.use(Button);

Use in one component and special imports

You can import the component like so:

js
import { wButton } from '@warp-ds/vue';

or import it individually to optimize your JS bundle size by adding only the components you need:

js
import { wButton } from '@warp-ds/vue/button';

Syntax

html
<w-button primary>Click me</w-button>
<w-button>Click me</w-button>

Props

Optional Props

NameTypeDefaultDescription
labelstringInterchangeable with the default slot for labelling
hrefstringWhen set, an anchor tag will be used instead of a button. Should not be combined with variant link
typestringbuttonControls the button's type, unused when href is present
fullWidthbooleanSets the button's width to its parent's width. Useful especially on mobile when button should take full width.

Variants

VariantModifiersNotes
primaryquiet, small, loading
secondaryquiet, small, loading
negativequiet, small, loading
linksmall
utilitysmall, loading, quiet
pill@deprecated use utility together with quiet instead.

Questions?

Feel free to ask any questions on usage in the Warp DS Slack channel: #warp-design-system