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

@commercetools-uikit/constraints

Package Overview
Dependencies
Maintainers
3
Versions
791
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-uikit/constraints

Constraints are container elements with a configurable constraint size, like width or height.

  • 0.0.0-canary-20240503111328
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.9K
decreased by-57.12%
Maintainers
3
Weekly downloads
 
Created
Source

Constraints

Description

Constraints are container elements with a configurable constraint size, like width or height.

Installation

yarn add @commercetools-uikit/constraints
npm --save install @commercetools-uikit/constraints

Additionally install the peer dependencies (if not present)

yarn add react
npm --save install react

Usage

import Constraints from '@commercetools-uikit/constraints';

<Constraints.Horizontal max={7}>
  <p>
    Lorem ipsum dolor sit amet, id labitur perpetua vix. An graece iisque
    corpora sit, erant nihil signiferumque et pro, cu ius minim altera
    temporibus.
  </p>
</Constraints.Horizontal>;

Horizontal

Properties

PropsTypeRequiredDefaultDescription
maxunion
Possible values:
, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto'
The value of the constraint. See equivalent pixel values here.
childrenReactNode

Keywords

FAQs

Package last updated on 03 May 2024

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