@hashicorp/hashi-button

2.0.0 • Public • Published

Button

A simple button.

Props

  • title (str) - button text
  • url (str) [optional] - where the button links to
  • external (bool) [optional] - opens the link in a new tab
  • theme (str) [optional] - a hashicorp-defined button theme
  • classes (str) [optional] - any additional classes needed on the button
  • ga_prefix (str) [optional] - a prefix to add the to GA event when clicked

This component also will reflect any additional props you pass it to the top level, so you can attach things like onClick etc.

Dependents

  • hashi-hero
  • hashi-logo-grid

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @hashicorp/hashi-button

      Weekly Downloads

      71

      Version

      2.0.0

      License

      none

      Unpacked Size

      11.7 kB

      Total Files

      4

      Last publish

      Collaborators

      • abhishek-hashicorp
      • dstaley
      • cameronperera
      • alexju
      • consul-ui-services
      • wenincode-hashicorp
      • hashicb
      • britt.lindgren
      • paulhcp
      • nandereck
      • tstormk
      • hashibot-hds
      • lackeyjb1
      • youriwims
      • jpogran
      • _natmegs
      • thrashr888
      • melsumner
      • mwickett
      • didoo
      • zchsh
      • hcitsec
      • gregone
      • meirish
      • enmod
      • kaxcode
      • anubhavmishra-hashicorp
      • hashibot-web
      • cstitt-hashi
      • kstraut
      • mocohen
      • dhaulagiri