@airbnb/lunar
TypeScript icon, indicating that this package has built-in type declarations

3.29.0 • Public • Published

Lunar

Provides core React building blocks that all other consuming packages are built around. This includes components, composers, themes, and more.

yarn add @airbnb/lunar

Setup

Initialize the core package to apply globalization and theme-related settings.

import Core from '@airbnb/lunar';

Core.initialize({
  defaultLocale: 'en',
  defaultTimezone: 'UTC',
  logger: logToSentry,
  name: 'AppName',
});

If defaultLocale and defaultTimezone are omitted, their values will be automatically detected from the user's browser settings.

You should call Core.initialize() before importing any component that leverages withStyles or useStyles for theme-related settings to take effect.

Readme

Keywords

none

Package Sidebar

Install

npm i @airbnb/lunar

Weekly Downloads

1,036

Version

3.29.0

License

MIT

Unpacked Size

1.82 MB

Total Files

1180

Last publish

Collaborators

  • brieb
  • airbnbeng
  • lencioni
  • milesj
  • ljharb