feat: create Card component wrapper

This commit is contained in:
gnezim
2026-04-05 20:50:09 +03:00
parent 9e0f661708
commit d8d2de43eb
3 changed files with 24 additions and 0 deletions
@@ -0,0 +1,6 @@
.card {
padding: 16px;
border-radius: 4px;
background-color: #ffffff;
border: 1px solid #e0e0e0;
}
@@ -0,0 +1,16 @@
import React from 'react'
import './card.scss'
export interface CardProps {
className?: string
children: React.ReactNode
'data-testid'?: string
}
export const Card: React.FC<CardProps> = ({ className, children, 'data-testid': dataTestId }) => {
return (
<section className={`card ${className || ''}`} data-testid={dataTestId}>
{children}
</section>
)
}
@@ -0,0 +1,2 @@
export { Card } from './card'
export type { CardProps } from './card'