next
This commit is contained in:
1 parent
b244287f6a
commit
5a2d49c17f
77 files changed
+2289
-31
No files matched your search
@@ -0,0 +1,21 @@
|
||||
---
|
||||
category: Controls
|
||||
---
|
||||
|
||||
# Button
|
||||
|
||||
The filled action. Ink on paper, and paper on ink inside a night surface, which it handles
|
||||
itself. There is no accent colour and no secondary button variant: a second action on the
|
||||
screen is a TextLink.
|
||||
|
||||
Pass `href` for navigation and it renders an anchor. Omit it for an in-page action.
|
||||
|
||||
The label names the action. "Talk to us", "Explore the method", "Request a verification".
|
||||
Never "Learn more", and never an arrow inside the label.
|
||||
|
||||
```jsx
|
||||
<Button href="/contact">Talk to us</Button>
|
||||
<Button size="small">Copy the report</Button>
|
||||
```
|
||||
|
||||
Astro equivalent: `<a class="button" href="/contact">`.
|
||||
Reference in new issue
Block a user