Socket
Book a DemoInstallSign in
Socket

@mongodb-js/compass-components

Package Overview
Dependencies
Maintainers
25
Versions
505
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongodb-js/compass-components

React Components used in Compass

latest
Source
npmnpm
Version
1.51.0
Version published
Weekly downloads
30K
34.36%
Maintainers
25
Weekly downloads
 
Created
Source

@mongodb-js/compass-components

Compass Components package contains all foundational components and hooks used to build parts of Compass. Keeping all leafygreen dependencies and core UI components in a single package allows us to easier manage external depedendencies on LeafyGreen (including making sure that we never have multiple versions of the same LeafyGreen packages in the application at the same time as this can lead to technical issues) and make sure that the UI is consistently updated throughout the whole application.

Guidelines

  • If there is a foundational component available in LeafyGreen we do not write our own, instead we wrap that in compass-components and use it throughout Compass. LeafyGreen component usage should follow the "Design Documentation" for the component that is being used (when available).
    • Refer to LeafyGreen Design System website to see all available LeafyGreen components.
    • Ask in #leafygreen-ui Slack channel if you have any questions about the LeafyGreen component usage that the team can't help you answer or documentation is not sufficient.
  • Components only use LeafyGreen variables for colors, typography, spacings, etc. Using custom values should be avoided. If Figma designs are not aligned with LeafyGreen design tokens, talk to the design team about that.
  • Use Web Content Accessibility Guidelines (WCAG) guidelines when building components.
    • A screenreader can be used to navigate through and interact with the components.
    • Components are navigable by using tab and arrow keys.

FAQs

Package last updated on 10 Sep 2025

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