gc-wing/packages/ui/src/components/Panel.tsx
htlee 6167a0ebd8 feat(ui): @wing/ui 기본 컴포넌트 8개 구현
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 06:12:02 +09:00

25 lines
555 B
TypeScript

import type { HTMLAttributes, ReactNode } from 'react';
import { cn } from '../utils/cn.ts';
interface PanelProps extends HTMLAttributes<HTMLDivElement> {
glass?: boolean;
children: ReactNode;
}
export function Panel({ glass = true, className, children, ...props }: PanelProps) {
return (
<div
className={cn(
'rounded-lg border border-wing-border p-3',
glass
? 'bg-wing-glass backdrop-blur-lg'
: 'bg-wing-surface',
className,
)}
{...props}
>
{children}
</div>
);
}