⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
coss Label
When to use
- Visible accessible labels for inputs and controls.
- Simple
htmlFor/idassociations in forms and settings UIs.
Install
npx shadcn@latest add @coss/label
Manual deps from docs:
# No extra runtime dependency required for this primitive.
Canonical imports
import { Label } from "@/components/ui/label"
Minimal pattern
<Label htmlFor="email">Email</Label>
Patterns from coss particles
Key patterns
Label paired with input:
const id = useId()
<div className="flex flex-col gap-2">
<Label htmlFor={id}>Email</Label>
<Input id={id} type="email" placeholder="[email protected]" />
</div>
Label wrapping a checkbox:
<Label>
<Checkbox />
Accept terms and conditions
</Label>
Prefer FieldLabel within Field for validation-aware forms.
More examples
See p-field-1, p-input-1, p-checkbox-1 for label-in-form patterns.
Common pitfalls
- Using
aria-labelwhen visibleLabeltext exists and can be associated. - Mismatching
htmlFor/idbetween label and control. - Using label component as generic typography instead of form labeling.
Useful particle references
- with checkbox:
checkbox-demo - label-specific particles: no dedicated
p-label-*family; use form referencesp-field-1,p-input-1,p-checkbox-1.