Socket
Socket
Sign inDemoInstall

@highlight-ui/layout

Package Overview
Dependencies
Maintainers
9
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highlight-ui/layout

A collection of layout helper components.


Version published
Weekly downloads
660
decreased by-57.23%
Maintainers
9
Weekly downloads
 
Created
Source

@highlight-ui/layout

Layout components are used to manage the white space between components and other elements. They produce visual consistency across Personio products by using a limited set of standardised spacing tokens. This also removes the hassle of space-management from the user.

Installation

yarn add @highlight-ui/layout

Stack

The Stack component manages the vertical spacing between elements.

Usage

In your TypeScript file:

import { Stack, StackProps } from '@highlight-ui/layout';

In your (S)CSS file:

@import url('@highlight-ui/layout');
<Stack space="spacing-4">
  <Placeholder>Item 1</Placeholder>
  <Placeholder>Item 2</Placeholder>
  <Placeholder>Item 3</Placeholder>
</Stack>

Props

PropTypeDefaultDescription
spaceSpacingTypespacing-0The spacing applied to the children.

Inline

The Inline component manages the horizontal spacing between elements. In addition to this, this component can also control the alignment of the items (both vertically and horizontally).

Usage

In your TypeScript file:

import { Inline, InlineProps } from '@highlight-ui/layout';

In your (S)CSS file:

@import url('@highlight-ui/layout');
<Inline space="spacing-4" align="center">
  <Placeholder>Item 1</Placeholder>
  <Placeholder>Item 2</Placeholder>
  <Placeholder>Item 3</Placeholder>
  <Placeholder>Item 4</Placeholder>
  <Placeholder>Item 5</Placeholder>
</Inline>

Props

PropTypeDefaultDescription
spaceSpacingTypespacing-0The spacing applied to the children.
alignAlignmentTypestartHorizontal alignment of the items.
alignVerticalAlignmentTypestartVertical alignment of the items.
wrapbooleantrueWhether to wrap the items when their width exceeds the container width.

Types

TypeValues
SpacingTypespacing-0, spacing-0-5, spacing-1, spacing-2, spacing-3, spacing-4, spacing-5, spacing-6, spacing-8, spacing-10, spacing-12, spacing-16, spacing-20, spacing-24, spacing-32
AlignmentTypestart, center, end

Documentation

Please visit personio.design

FAQs

Package last updated on 15 Mar 2023

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