Skip to content

Commit

Permalink
chore: add missing changeset for Details rename (#2839)
Browse files Browse the repository at this point in the history
We forgot to add a changeset in #2824, this PR adds one.
  • Loading branch information
Barsnes authored Nov 27, 2024
1 parent fa749c8 commit 36cefe3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/silver-penguins-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@digdir/designsystemet-react": patch
"@digdir/designsystemet-css": patch
---

Rename `Accordion` to `Details`
12 changes: 12 additions & 0 deletions packages/react/src/components/Details/Details.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,24 @@ Med `Details` kan du presentere mye innhold på liten plass i en eller flere rad
## Bruk

```tsx
/* Uten ramme */
import { Details } from '@digdir/designsystemet-react';

<Details>
<Details.Summary>Details heading text</Details.Summary>
<Details.Content>Details content</Details.Content>
</Details>

/* Med ramme */

import { Details, Card } from '@digdir/designsystemet-react';

<Card>
<Details>
<Details.Summary>Details heading text</Details.Summary>
<Details.Content>Details content</Details.Content>
</Details>
</Card>
```

## Eksempler
Expand Down

0 comments on commit 36cefe3

Please sign in to comment.