πŸ™ Onigiri

The Crunchyroll design system, rendered live from its own tokens and components. It cannot drift from what ships.

Docs draft

FormField

When to use it

useAny control that needs guidance below it, or an error message when invalid.

API

PropTypeDescription
childrenReactNodeThe control (Input, Select, a Checkbox group…).
helpReactNodeHelp text rendered under the control.
errorReactNodeReplaces help while present; pair with aria-invalid on the control.
messageIdstringGive the message an id so the control can aria-describedby it.

Design specifications

messagetype.caption
help-colorcolor.text.secondary
error-colorcolor.text.negative
gapspace.4

Accessibility

The message is plain text linked by aria-describedby; error state on the control itself comes from aria-invalid, so the message never needs to shout.