mirror of
https://github.com/luxfi/design.git
synced 2026-10-30 16:58:57 +00:00
Monochrome, dark by default. One hue rendered through an opacity ladder. Tokens (color, type, spacing, radius, elevation, motion) + core/forms/navigation/ overlays components + brand guidelines + ui kit. The single source of truth for every Lux surface — loadable and editable.
10 lines
378 B
React
10 lines
378 B
React
import React from 'react'
|
|
|
|
export function Label({ required = false, style, children, ...rest }) {
|
|
return (
|
|
<label style={{display:'inline-block',fontSize:'var(--text-sm)',fontWeight:'var(--weight-medium)',color:'var(--text-secondary)',...style}} {...rest}>
|
|
{children}{required && <span aria-hidden style={{color:'var(--text-helper)'}}> *</span>}
|
|
</label>
|
|
)
|
|
}
|