🚀 Socket Launch Week 🚀 Day 2: Introducing Repository Labels and Security Policies.Learn More
Socket
Sign inDemoInstall
Socket

@berlitz/globals

Package Overview
Dependencies
Maintainers
1
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@berlitz/globals

Globals component for the Max Design System

4.8.4
latest
npm
Version published
Weekly downloads
5.3K
-25.22%
Maintainers
1
Weekly downloads
 
Created
Source

Globals npm version

The Globals Component Contains:

  • Layout - Grids, Sections, Spacings, Layout Utilities
  • Typography - All Global Headings, Paragraphs Styles
  • Rich Text - Styles for Typography, Video Embed, Tables, Images, Lists etc
  • Flex - Wrapper element for flex alignment and positioning

Installation

yarn add @berlitz/globals

Props

Headings Props

ArgumentTypeRequiredDefaultExample
inverseboolfalse
disableMarginboolfalse
highlightstringnull
colorstringnull'brandPrimary'

Paragraphs Props

ArgumentTypeRequiredDefaultExample
sizestringmdsm / md / lg
colorstringnull'brandPrimary'

RichText Props

ArgumentTypeRequiredDefaultExample
inverseboolfalse

Flex Props

ArgumentTypeRequiredDefaultExample
alignItemsstringflex-end / flex-start
basisstringauto / 0 / 200px
directionstringrow / column
growstring1 / 0.5 / unset / inherit
inlinebool
justifyContentstringflex-end / flex-start / space-around, space-between
widthstring200px / 50%
wrapstringwrap / no-wrap

Usage

import { P, H1, H2, H3, H4, H5, RichText } from '@berlitz/globals/lib/components/typography'
import { Flex } from '@berlitz/globals/lib/components/Flex'

const MyApp = () => (
  <>
    <H1>Hello World</H1>
    <div>
      <H2 highlight="secondary">H2 Heading</H2>
    </div>
    <P>I am an Example Paragraph</P>
    <RichText>
      <h3>Just a HTML heading</h3>
      <p>Just your average HTML Paragraph</p>
      <iframe src="//youtube.com/embed/9cWxP_HMkCA" />
    </RichText>
    <Flex direction="row" justifyContent="space-around">
      <div>Boxes</div>
      <div>distributed</div>
      <div>in a row</div>
    </Flex>
  </>
)

When to use this component

  • Headings
  • Paragraphs
  • RichText
  • Grids
  • Containers

FAQs

Package last updated on 21 Apr 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