Skip to content

Commit

Permalink
chore(docs): migrate react-buttons to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhu committed Sep 24, 2020
1 parent d5ddd6f commit 03bbf07
Show file tree
Hide file tree
Showing 21 changed files with 583 additions and 753 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ <h1 class="c-main__title">React Components</h1>
<a class="u-fg-inherit" href="storybook/?path=/story/components-breadcrumbs-readme--page">Breadcrumbs</a>
</div>
<div class="u-mb-sm">
<a class="u-fg-inherit" href="buttons">Buttons</a>
<a class="u-fg-inherit" href="storybook/?path=/story/components-buttons-readme--page">Buttons</a>
</div>
<div class="u-mb-sm">
<a class="u-fg-inherit" href="storybook/?path=/story/components-chrome-readme--page">Chrome</a>
Expand Down
8 changes: 5 additions & 3 deletions packages/buttons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ npm install react react-dom prop-types styled-components @zendeskgarden/react-th

## Usage

```jsx static
### Button

```jsx
import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Button } from '@zendeskgarden/react-buttons';

Expand All @@ -33,7 +35,7 @@ import { Button } from '@zendeskgarden/react-buttons';

### Media button

```jsx static
```jsx
import React, { useState } from 'react';
import { Button } from '@zendeskgarden/react-buttons';
import StartIcon from '@zendeskgarden/icons/src/16/shield-stroke.svg';
Expand All @@ -58,7 +60,7 @@ const MediaButton = ({ children, ...props }) => {

### Button group

```jsx static
```jsx
import React, { useState } from 'react';
import { ButtonGroup, Button } from '@zendeskgarden/react-buttons';

Expand Down
96 changes: 0 additions & 96 deletions packages/buttons/examples/advanced.md

This file was deleted.

Loading

0 comments on commit 03bbf07

Please sign in to comment.