base design system

This commit is contained in:
mats committed 2026-09-12 11:29:13 +02:00
1 parent cd952029fe
commit fbd29de863
29 files changed
+1705

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import type { ReactNode, ButtonHTMLAttributes } from 'react'
type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost'
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & { variant?: ButtonVariant; children: ReactNode }
/** Shared action primitive. Visual variants stay in App.css so themes can override them. */
export function Button({ variant = 'secondary', className = '', children, ...props }: ButtonProps) {
return <button className={`button ${variant} ${className}`.trim()} {...props}>{children}</button>
}