Forma 36

FormLabel

StorybookGithub
stable

FormLabel makes it possible to define input label components.

Table of contents

  1. Best practices
  2. Required properties
  3. Writing guidelines

Best practices

  • Provide html for all properties of the input label

FormLabel required properties (required, requiredText)

To communicate that the corresponding input of the FormLabel is required, use the props required and requiredText. Use this guidance to determine the correct required properties to use based on the context.

PropertyDescription
requiredUsed to add the text 'required' next to the label
requiredTextUsed to customize the 'required' text

Writing guidelines

  • Do not use punctuation following a label
  • Use sentence style caps (in which only the first word of a sentence or term is capitalized) on labels