nylas-locale-switch
Overview
The nylas-locale-switch
component is a UI component that allows users to select a timezone and language.
Version | 1.1.0-canary.14 |
Install (React) | npm install @nylas/react |
Import (React) | import { NylasLocaleSwitch } from '@nylas/react'; |
Example
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
selectedLanguage | selected-language | The selected language. | string | navigator.language |
selectedTimezone | selected-timezone | The selected timezone. | string | Intl.DateTimeFormat().resolvedOptions().timeZone |
Events
Event | Description | Type |
---|---|---|
languageChanged | This event is fired when the language is changed. | CustomEvent<string> |
timezoneChanged | This event is fired when the timezone is changed. | CustomEvent<string> |
Built with StencilJS