nylas-locale-switch

Overview

The nylas-locale-switch component is a UI component that allows users to select a timezone and language.

Version1.1.0-canary.14
Install (React)npm install @nylas/react
Import (React)import { NylasLocaleSwitch } from '@nylas/react';

Example


Properties

PropertyAttributeDescriptionTypeDefault
selectedLanguageselected-languageThe selected language.stringnavigator.language
selectedTimezoneselected-timezoneThe selected timezone.stringIntl.DateTimeFormat().resolvedOptions().timeZone

Events

EventDescriptionType
languageChangedThis event is fired when the language is changed.CustomEvent<string>
timezoneChangedThis event is fired when the timezone is changed.CustomEvent<string>

Built with StencilJS