For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/form-field.md.
v0.0.57
  • English
  • FormField

    Data Entry@rockshin/tao-ui

    Associates labels, help text, validation state, and controls.

    When to use

    Use FormField to provide accessible labeling and status text around a single control.

    Recommended

    • Connect every input with a visible label.
    • Keep validation copy specific and actionable.

    Avoid

    • Do not use the component outside its intended interaction model.

    Examples

    Basic usage

    Used for account notifications.

    TSX

    Description and error states

    Visible to all members.

    TSX

    Semantic parts

    Stored securely.

    TSX

    Complete form composition

    Compose layout, fields, and actions with native submission feedback.

    Profile

    Public workspace information

    A short introduction

    No changes saved
    TSX

    Error feedback and recovery

    Update errors with input while the field label remains associated with its control.

    TSX

    Explicit association

    Use htmlFor and an input id when integrating existing form identifiers; useId avoids duplicates.

    Used for account notifications

    TSX

    API

    FormField

    PropertyDescriptionTypeDefault Value
    classNameAdditional css classstring | undefined-
    styleAdditional styleCSSProperties | undefined-