16 lines
333 B
TypeScript
16 lines
333 B
TypeScript
import { cx } from "class-variance-authority"
|
|
|
|
import styles from "./section.module.css"
|
|
|
|
export function Section({
|
|
children,
|
|
className,
|
|
...props
|
|
}: React.PropsWithChildren<React.HTMLAttributes<HTMLElement>>) {
|
|
return (
|
|
<section {...props} className={cx(styles.section, className)}>
|
|
{children}
|
|
</section>
|
|
)
|
|
}
|