fix(BOOK-436): Added new section component and deprecated the other
Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
15
apps/scandic-web/components/Section/index.tsx
Normal file
15
apps/scandic-web/components/Section/index.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user