mirror of https://github.com/sylv/micro.git
12 lines
320 B
TypeScript
12 lines
320 B
TypeScript
import clsx from 'clsx';
|
|
import type { FC, HTMLAttributes } from 'react';
|
|
|
|
export const Card: FC<HTMLAttributes<HTMLDivElement>> = ({ className, children, ...rest }) => {
|
|
const classes = clsx(className, 'p-4 bg-dark-200 rounded');
|
|
return (
|
|
<div className={classes} {...rest}>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|