Skip to content

Commit

Permalink
feat: add shape props for button to create rounded buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
catchspider2002 committed Nov 9, 2019
1 parent 5af26c3 commit 7fb3b8b
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 61 deletions.
128 changes: 67 additions & 61 deletions site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions site/package.json
Expand Up @@ -19,6 +19,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@material/rtl": "^4.0.0",
"compression": "^1.7.4",
"polka": "next",
"sirv": "^0.4.2"
Expand Down
8 changes: 8 additions & 0 deletions site/src/routes/demo/button.svelte
Expand Up @@ -38,6 +38,14 @@
<Button color="secondary" on:click={() => clicked++}><Label>Trailing Icon</Label><Icon class="material-icons">favorite</Icon></Button>
</div>

<div>
Shaped button: <br />
<Button on:click={() => clicked++} variant="unelevated" shape="rounded"><Label>Unelevated</Label></Button>
<Button on:click={() => clicked++} variant="outlined" shape="rounded"><Label>Outlined</Label></Button>
<Button on:click={() => clicked++} variant="unelevated" shape="rounded"><Icon class="material-icons">favorite</Icon><Label>Icon</Label></Button>
<Button on:click={() => clicked++} variant="unelevated" shape="rounded"><Label>Trailing Icon</Label><Icon class="material-icons">favorite</Icon></Button>
</div>

<div>
Button groups: <br />
<Group>
Expand Down

0 comments on commit 7fb3b8b

Please sign in to comment.