Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@airbnb/lunar

Package Overview
Dependencies
Maintainers
6
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 3.29.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
448
decreased by-1.1%
Maintainers
6
Weekly downloads
 
Created
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

Package last updated on 15 Mar 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc