Skip to content

React Aria

React Aria offers unstyled React controls for interfaces such as dialogs, calendars and selectable lists.

Visit React Aria

When is React Aria useful for a form?

Try React Aria Components when someone needs a richer control like a date picker. The date picker combines editable date parts with a calendar. Provide a label that says which date you are asking for and check what a user can do when some dates are unavailable.

What do you need to add to the example?

Use it in a React project. The documentation offers CSS and Tailwind examples as starting points. Bring your own spacing, colors and visible focus styling. In a modal, give the panel a meaningful title and decide when someone can dismiss it without saving.

What should you keep when you customize it?

The project uses the Apache 2.0 license. Keep your styling, wrapper code and chosen package version with the rest of your app. If you change the appearance of unavailable dates, keep the state recognizable without relying on color alone.

How would you check a booking date before building the form?

Draw a fictional calendar with one available date, one unavailable date and a Cancel button. Use the sketch to define the result, then test the completed control in your own app.

  1. Try choosing a date by keyboard
    Mark how someone would reach the field, open the calendar and select the available date. Show which control has focus and where the selected value appears.
  2. Try the unavailable date
    Decide how the visitor learns why that date cannot be picked and what they can do next. Close the calendar and check whether the visitor can continue the form without starting over.