feat (v1.0.0): initial refactor and redesign
This commit is contained in:
parent
3058aa1ab4
commit
fe9b50b30e
134 changed files with 17792 additions and 3670 deletions
20
components/ui/Surface.tsx
Normal file
20
components/ui/Surface.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { ReactNode } from 'react'
|
||||
import { cn, surfaces } from '@/lib/theme'
|
||||
|
||||
interface SurfaceProps {
|
||||
children: ReactNode
|
||||
variant?: keyof typeof surfaces.panel
|
||||
className?: string
|
||||
}
|
||||
|
||||
export function Surface({
|
||||
children,
|
||||
variant = 'dropdown',
|
||||
className
|
||||
}: SurfaceProps) {
|
||||
return (
|
||||
<div className={cn(surfaces.panel[variant], className)}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue