Skip to content

Commit 407d85f

Browse files
committed
update Accordion
1 parent 4c70b53 commit 407d85f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/actify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "actify",
3-
"version": "0.5.4",
3+
"version": "0.5.5",
44
"license": "MIT",
55
"author": "Lerte Smith",
66
"keywords": [

packages/actify/src/components/Accordion/Accordion.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
useState
1010
} from 'react'
1111

12+
import clsx from 'clsx'
1213
import styles from './accordion.module.css'
1314

1415
interface AccordionRootProps extends AccordionProps, ComponentProps<'div'> {}
@@ -19,7 +20,7 @@ const Accordion = (props: AccordionRootProps) => {
1920

2021
return (
2122
<AccordionProvider {...{ open, setOpen, multiple }}>
22-
<div {...rest} className={styles['accordion']}>
23+
<div {...rest} className={clsx(styles['accordion'], className)}>
2324
{Children.map(
2425
children,
2526
(child, index) =>

packages/actify/src/components/Accordion/accordion.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.accordion {
2-
padding: 16px;
32
display: flex;
43
gap: 16px;
54
border-radius: 8px;

0 commit comments

Comments
 (0)