eoria
Component

Label

Form label built on Text.

Label rendered on iOS, light mode
Label rendered on iOS, dark mode
iPhone, zinc preset. Captured from the example app.
Terminal window
npx @eoria/cli add label

Usage

import { Label } from '@/components/ui/label'
<Label nativeID="email-label">Email</Label>
<Input accessibilityLabelledBy="email-label" accessibilityLabel="Email" />

Props

Prop Effect
disabled Dims the label and ignores presses.
onPress Makes it a button, handy for toggling a checkbox by its text.

Prefer Field, which sets the ids and the fallback accessibilityLabel for you.

Source

registry/ui/label.tsx