Skip to content

Vuetify: hg‐button (HgButtonComponent)

Mike Lyttle edited this page Jun 16, 2023 · 3 revisions

General

  • primary, secondary, danger, success, and link variants:
    • Swap <hg-button> for <HgButtonComponent>.
    • Using full names makes it easier to track down references.
    • Because it's easier to use imported components in Vue 3 with Composition API single-file components, instead of registering the component globally, import it in each file it is used.
  • icon variants:
  • carousel and nav variants:
    • Stop using <hg-button>.

Variant

primary

<HgButtonComponent>

secondary

<HgButtonComponent variant="secondary">

danger

<HgButtonComponent color="error">

success

<HgButtonComponent color="success">

link

<HgButtonComponent variant="link">

link-danger

<HgButtonComponent variant="link" color="error">

Size

small

<HgButtonComponent size="small">
Clone this wiki locally