Socket
Socket
Sign inDemoInstall

@airbnb/lunar

Package Overview
Dependencies
133
Maintainers
6
Versions
213
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @airbnb/lunar

React toolkit and design language for Airbnb open source and internal projects.


Version published
Weekly downloads
763
increased by79.95%
Maintainers
6
Install size
20.1 MB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 15 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc