@servicensw/buttons

Button styles

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@servicensw/buttons
2.3.24 months ago4 years agoMinified + gzip package size for @servicensw/buttons in KB

Readme

@servicensw/buttons
Button components
Service NSW package documentation and examples
(Login credentials required)

Installation

npm install @servicensw/buttons --save-dev

How to use

CSS
  • PostCSS workflow: @import '@servicensw/buttons';
  • Sass/Eyeglass: @import 'servicensw-buttons';
  • Native CSS: @import url('dist/buttons.css');
  • Link tag: <link href="dist/buttons.css" rel="stylesheet" type="text/css">

HTML
<a class="button button--primary" href="#">Button</a>

<a class="button button--secondary" href="#">Button</a>

<a class="button button--tertiary" href="#">Button</a>

<span class="badge">Badge</span>