Files
flashcards-example-project/src/components/ui/card/card.tsx
2023-12-28 12:05:50 +01:00

16 lines
427 B
TypeScript

import { ComponentPropsWithoutRef, forwardRef } from 'react'
import { clsx } from 'clsx'
import s from './card.module.scss'
export type CardProps = {} & ComponentPropsWithoutRef<'div'>
export const Card = forwardRef<HTMLDivElement, CardProps>(({ className, ...restProps }, ref) => {
const classNames = {
root: clsx(s.root, className),
}
return <div className={classNames.root} ref={ref} {...restProps}></div>
})