first commit
This commit is contained in:
commit
34ea15a54d
246 changed files with 18660 additions and 0 deletions
12
frontend/src/admin/components/AdminField.jsx
Normal file
12
frontend/src/admin/components/AdminField.jsx
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
export function AdminField({ label, children, className = '' }) {
|
||||
return (
|
||||
<label className={`block text-body-sm ${className}`}>
|
||||
<span className="text-label uppercase text-ink-muted">{label}</span>
|
||||
<div className="mt-1">{children}</div>
|
||||
</label>
|
||||
)
|
||||
}
|
||||
|
||||
export function adminInputClassName(extra = '') {
|
||||
return `w-full min-h-10 border border-border bg-surface px-3 text-body focus:border-ink focus:outline-none ${extra}`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue