mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-16 12:33:18 +00:00
16 lines
427 B
TypeScript
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>
|
|
})
|