Skip to content

Commit 7fb3b8b

Browse files
feat: add shape props for button to create rounded buttons
1 parent 5af26c3 commit 7fb3b8b

File tree

3 files changed

+76
-61
lines changed

3 files changed

+76
-61
lines changed

site/package-lock.json

Lines changed: 67 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"license": "Apache-2.0",
2121
"dependencies": {
22+
"@material/rtl": "^4.0.0",
2223
"compression": "^1.7.4",
2324
"polka": "next",
2425
"sirv": "^0.4.2"

site/src/routes/demo/button.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
3838
<Button color="secondary" on:click={() => clicked++}><Label>Trailing Icon</Label><Icon class="material-icons">favorite</Icon></Button>
3939
</div>
4040

41+
<div>
42+
Shaped button: <br />
43+
<Button on:click={() => clicked++} variant="unelevated" shape="rounded"><Label>Unelevated</Label></Button>
44+
<Button on:click={() => clicked++} variant="outlined" shape="rounded"><Label>Outlined</Label></Button>
45+
<Button on:click={() => clicked++} variant="unelevated" shape="rounded"><Icon class="material-icons">favorite</Icon><Label>Icon</Label></Button>
46+
<Button on:click={() => clicked++} variant="unelevated" shape="rounded"><Label>Trailing Icon</Label><Icon class="material-icons">favorite</Icon></Button>
47+
</div>
48+
4149
<div>
4250
Button groups: <br />
4351
<Group>

0 commit comments

Comments
 (0)