Skip to content

Commit

Permalink
Merge pull request #15671 from storybookjs/fix/button-link-props
Browse files Browse the repository at this point in the history
Allow Button to accept href attribute
  • Loading branch information
shilman committed Jul 24, 2021
2 parents e89c031 + addac42 commit 13a2dd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/components/src/Button/Button.stories.tsx
Expand Up @@ -52,5 +52,8 @@ storiesOf('Basics/Button', module).add('all buttons', () => (
<Icons icon="link" />
Link
</Button>
<Button primary small isLink href="#">
<Icons icon="link" /> Link
</Button>
</div>
));
1 change: 1 addition & 0 deletions lib/components/src/Button/Button.tsx
Expand Up @@ -14,6 +14,7 @@ export interface ButtonProps {
outline?: boolean;
containsIcon?: boolean;
children?: React.ReactNode;
href?: string;
}

type ButtonWrapperProps = ButtonProps;
Expand Down

0 comments on commit 13a2dd7

Please sign in to comment.