Skip to content

Commit

Permalink
fix(buttons): update icon Buttons syntax as recommended in @windmill/…
Browse files Browse the repository at this point in the history
…react-ui
  • Loading branch information
estevanmaito committed Jul 21, 2020
1 parent 2355363 commit 15260fd
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/pages/Buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,29 +121,30 @@ function Buttons() {
<SectionTitle>Icons</SectionTitle>
<div className="flex flex-col flex-wrap mb-8 space-y-4 md:flex-row md:items-end md:space-x-4">
<div>
<Button>
<Button iconRight={HeartIcon}>
<span>Icon right</span>
<HeartIcon className="w-4 h-4 ml-2 -mr-1" aria-hidden="true" />
</Button>
</div>

<div>
<Button>
<HeartIcon className="w-4 h-4 mr-2 -ml-1" aria-hidden="true" />
<Button iconLeft={HeartIcon}>
<span>Icon Left</span>
</Button>
</div>

<div>
<Button size="icon" aria-label="Like">
<HeartIcon className="w-5 h-5" aria-hidden="true" />
</Button>
<Button icon={HeartIcon} aria-label="Like" />
</div>

<div>
<Button size="icon" aria-label="Edit">
<EditIcon className="w-5 h-5" aria-hidden="true" />
</Button>
<Button icon={EditIcon} aria-label="Edit" />
</div>

<div>
<Button icon={HeartIcon} layout="link" aria-label="Like" />
</div>
<div>
<Button icon={HeartIcon} layout="outline" aria-label="Like" />
</div>
</div>
</>
Expand Down

1 comment on commit 15260fd

@vercel
Copy link

@vercel vercel bot commented on 15260fd Jul 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.