Skip to content

Commit

Permalink
add a KeyboardButton component helper
Browse files Browse the repository at this point in the history
  • Loading branch information
laulauland committed Aug 22, 2024
1 parent 1607d97 commit a4e22fc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions www/src/components/KeyboardButton.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
---

<span><slot /></span>

<style>
span {
align-items: center;
background-color: var(--sl-color-gray-6);
border-radius: 0.25rem;
box-shadow: 0 0 0 1px var(--sl-color-gray-5);
text-transform: uppercase;
display: inline-flex;
font-family: monospace;
font-size: 0.8rem;
font-weight: bold;
padding: 0.25rem 0.5rem;
margin: 0 0.25rem;
}
</style>

0 comments on commit a4e22fc

Please sign in to comment.