Spaces:
Runtime error
Runtime error
File size: 579 Bytes
518343a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import type React from 'react';
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
accent?: string;
padding?: string | number;
radius?: number;
}
export function Card({ children, accent, padding = '16px 20px', radius = 8, style, ...rest }: CardProps) {
return (
<div
style={{
border: `1px solid ${accent ? `${accent}40` : 'rgba(255,255,255,0.08)'}`,
borderRadius: radius,
background: 'rgba(255,255,255,0.025)',
padding,
...style,
}}
{...rest}
>
{children}
</div>
);
}
|