mirror of https://github.com/MaxLeiter/Drift
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
427 B
TypeScript
24 lines
427 B
TypeScript
import styles from "./button-group.module.css"
|
|
import clsx from "clsx"
|
|
export default function ButtonGroup({
|
|
children,
|
|
vertical,
|
|
...props
|
|
}: {
|
|
children: React.ReactNode | React.ReactNode[]
|
|
vertical?: boolean
|
|
} & React.HTMLAttributes<HTMLDivElement>) {
|
|
return (
|
|
<div
|
|
className={clsx(
|
|
props.className,
|
|
styles["button-group"],
|
|
vertical && styles.vertical
|
|
)}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|