mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-18 20:59:32 +00:00
add components
This commit is contained in:
15
src/components/ui/page/page.tsx
Normal file
15
src/components/ui/page/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { ComponentPropsWithoutRef, forwardRef } from 'react'
|
||||
|
||||
import { clsx } from 'clsx'
|
||||
|
||||
import s from './page.module.scss'
|
||||
|
||||
export type PageProps = ComponentPropsWithoutRef<'div'>
|
||||
|
||||
export const Page = forwardRef<HTMLDivElement, PageProps>(({ className, ...props }, ref) => {
|
||||
const classNames = {
|
||||
root: clsx(s.root, className),
|
||||
}
|
||||
|
||||
return <div {...props} ref={ref} className={classNames.root} />
|
||||
})
|
||||
Reference in New Issue
Block a user