@hig/button
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/hig__button package

3.2.0 • Public • Published

Button

HIG buttons trigger actions or changes within the interface. They come in a number of varieties.

Read more about when and how to use the Button components on the HIG website.

Getting started

yarn add @hig/button @hig/theme-context @hig/theme-data

Import the component

import Button from '@hig/button';

Basic usage

<Button
  size="standard"
  title="Click Me"
  type="primary"
/>

Custom CSS

Use the className prop to pass in a css class name to the outermost container of the component. The class name will also pass down to most of the other styled elements within the component.

Usage as a link

<Button
  size="standard"
  title="Github"
  type="secondary"
  link="https://www.github.com"
  target="_blank"
/>

Readme

Keywords

none

Package Sidebar

Install

npm i @hig/button

Weekly Downloads

85

Version

3.2.0

License

Apache-2.0

Unpacked Size

57.2 kB

Total Files

5

Last publish

Collaborators

  • hig-bot
  • nfiniteset
  • wmui51
  • staceyshk