# @rei-co-op/cedar-button

> REI Cedar Style Framework - Vue Component for Button

Latest version **0.0.7** (published 2017-12-15) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @rei-co-op/cedar-button
pnpm add @rei-co-op/cedar-button
yarn add @rei-co-op/cedar-button
bun add @rei-co-op/cedar-button
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2017-12-15 |
| First published | 2017-10-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | REI Software Engineering |
| Maintainers | lancetharper, debugxyz, soundtrksamurai, mhewson |

## Links

- npm: https://www.npmjs.com/package/@rei-co-op/cedar-button
- Homepage: https://rei.github.io/rei-cedar/#cdr-button
- npm.io page: https://npm.io/package/@rei-co-op/cedar-button

## Recent versions

- 0.0.7 (latest) — 2017-12-15
- 0.0.6 — 2017-11-29
- 0.0.5 — 2017-11-13
- 0.0.4 — 2017-11-08
- 0.0.3 — 2017-10-25
- 0.0.2 — 2017-10-23
- 0.0.1 — 2017-10-20

## README

### Modifiers

Modifiers can be combined 1 from each grouping.

{secondary} | {sm,xs} | {block, fixed, responsive} **OR** link

Use of the 'link' modifier depends on including the css for cdrA.

A modifier list that contains 'link' exposes the same modifiers as cdrA and the other modifiers shouldn't be combined with it.

Responsive makes the button full width and block @ sm breakpoint.

### Examples

#### Default

```
function log() {
    console.log('Clicked!');
}

<cdr-button :on-click="log">I have a click event</cdr-button>
```

#### Secondary

```
function log() {
    console.log('Clicked!');
}

<cdr-button modifier="secondary" :on-click="log">Secondary</cdr-button>
```

#### CTA Sale

```
<cdr-button modifier="cta-sale">Secondary</cdr-button>
```

#### Link Modifier

```
function log() {
    console.log('Clicked!');
}

<cdr-button modifier="link" :on-click="log">Link</cdr-button>
```

### Sizes and Shapes

#### Small Modifier

```
function log() {
    console.log('Clicked!');
}

<cdr-button modifier="sm" :on-click="log">Default</cdr-button>
```

#### Extra Small Modifier

```
function log() {
    console.log('Clicked!');
}

<cdr-button modifier="xs" :on-click="log">Default</cdr-button>
```

### Block Modifier

```
function log() {
    console.log('Clicked!');
}

<cdr-button modifier="block"  :on-click="log">Default</cdr-button>
```

---
_Source: https://npm.io/package/@rei-co-op/cedar-button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
