Skip to content

[Primitive] ErrorText #48

@jbatte47

Description

@jbatte47

Summary

Introduce an ErrorText primitive for field validation messaging.

Intended role in Lattice

ErrorText provides consistent styling for error messages without owning validation logic.

Proposed API

  • as: React element type (default p)
  • size: xs | sm
  • tone: critical | warning

Variants

  • size: xs | sm
  • tone: critical | warning

Non-goals

  • Does not manage validation or error state.
  • Does not automatically connect to inputs.

States

  • Default only (non-interactive).

Accessibility checklist

  • Non-interactive; no keyboard behavior required.
  • Consumers should link to inputs via aria-describedby and set aria-invalid on inputs.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions