📝 Document Chip on the website
Adds a Chip section with neutral, action and removable examples, plus changelog entries for the new component.
This commit is contained in:
1 parent
df47b69155
commit
ceb54a3201
3 files changed
+22
No files matched your search
@@ -4,6 +4,7 @@ import {
|
|||||||
Alert,
|
Alert,
|
||||||
BodyShort,
|
BodyShort,
|
||||||
Button,
|
Button,
|
||||||
|
Chip,
|
||||||
Heading,
|
Heading,
|
||||||
Modal,
|
Modal,
|
||||||
TextField,
|
TextField,
|
||||||
@@ -86,6 +87,19 @@ export function App() {
|
|||||||
</Accordion>
|
</Accordion>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section className="example">
|
||||||
|
<Heading level="2" size="medium">
|
||||||
|
Chip
|
||||||
|
</Heading>
|
||||||
|
<div className="example__preview">
|
||||||
|
<Chip>Filter</Chip>
|
||||||
|
<Chip variant="action">Oslo</Chip>
|
||||||
|
<Chip removable onDelete={() => console.log("Slettet")}>
|
||||||
|
Fjernbar
|
||||||
|
</Chip>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section className="example">
|
<section className="example">
|
||||||
<Heading level="2" size="medium">
|
<Heading level="2" size="medium">
|
||||||
Modal
|
Modal
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
- :sparkles: Add Chip styles.
|
||||||
|
|
||||||
## 0.2.0
|
## 0.2.0
|
||||||
|
|
||||||
- :bug: Fix focus ring on Button — use a box-shadow ring so the indicator renders correctly in Safari.
|
- :bug: Fix focus ring on Button — use a box-shadow ring so the indicator renders correctly in Safari.
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
- :sparkles: Add Chip component with neutral and action variants.
|
||||||
|
|
||||||
## 0.2.0
|
## 0.2.0
|
||||||
|
|
||||||
- Add Accordion and Modal components.
|
- Add Accordion and Modal components.
|
||||||
|
|||||||
Reference in new issue
Block a user