LocaleProvider
Set the locale inherited by date controls in part of an interface.
Basic usage
The first DateInput inherits the provider locale. The second displays the same date in French by setting its own locale. The underlying calendar date stays the same.
2292028
29022028
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
locale | BCP 47 locale tag | en-US |
dir | ltr | rtl | ltr |
children | JSX.Element | — |