Socket
Socket
Sign inDemoInstall

@commercetools-uikit/constraints

Package Overview
Dependencies
76
Maintainers
3
Versions
715
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
12K
decreased by-18.35%
Maintainers
3
Created
Weekly downloads
 

Readme

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

Last updated on 15 Feb 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc