mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-28 05:06:38 +00:00
White mac native + notification test
This commit is contained in:
26
client/uiwails/frontend/src/components/ui/Card.tsx
Normal file
26
client/uiwails/frontend/src/components/ui/Card.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
interface CardProps {
|
||||
label?: string
|
||||
children: React.ReactNode
|
||||
className?: string
|
||||
}
|
||||
|
||||
export default function Card({ label, children, className }: CardProps) {
|
||||
return (
|
||||
<div className={className}>
|
||||
{label && (
|
||||
<h3 className="text-[11px] font-semibold uppercase tracking-wide px-4 mb-1.5" style={{ color: 'var(--color-text-tertiary)' }}>
|
||||
{label}
|
||||
</h3>
|
||||
)}
|
||||
<div
|
||||
className="rounded-[var(--radius-card)] overflow-hidden"
|
||||
style={{
|
||||
backgroundColor: 'var(--color-bg-secondary)',
|
||||
boxShadow: 'var(--shadow-card)',
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user