Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@-ui/react-layout

dash-ui24MITdeprecated0.1.2TypeScript support: included

This package has moved to @dash-ui/react-layout

jsx harmony import _ from '@-ui/react-layout'

react, react component, react layout, layout components, dash layout components, -ui layout components, react layout components, stack component, grid component, cluster component, layer component, react stack component, react grid component, react cluster component, react layer component, spacing component, spacer component, react spacing component

readme


@-ui/react-layout

Bundlephobia Types Code coverage Build status NPM Version MIT License

npm i @-ui/react-layout

Awesome layout primitives for React and dash-ui

Quick Start

jsx harmony import _ from '@-ui/react-layout'

API

Components

Component Description
LayoutProvider A context provider which is only required if you intend on using media query props or a custom styles object created by @-ui/react using styles.create()
Cluster
Column
FlexItem
Box
Grid
GridItem
Layer
LayerItem
Row

Hooks

Component Description
useLayout Consumes the context from LayoutProvider

Styles

These are useful objects for using quick flex styles in media query props

Component Description
alignContent
alignItems
alignSelf
flexDirection
justifyContent
justifyItems
justifySelf

Components

<LayoutProvider>

Prop Type Default Required? Description
| |

Hooks

useLayout()

Consumes the context from LayoutProvider

Styles

alignItems

An object containing a property map for align-items styles

LICENSE

MIT

changelog

1.0.0 (2022-06-25)

Features

  • release v1 (3c3e40a)
  • remove alpha peers (b5e8dd5)
  • update types and apis to support latest dash alpha (a75301d)

BREAKING CHANGES

  • Types and expected input styles instance are updated to the latest alpha

1.0.0-alpha.2 (2022-06-25)

Features

1.0.0-alpha.1 (2021-10-29)

Features

  • update types and apis to support latest dash alpha (a75301d)

BREAKING CHANGES

  • Types and expected input styles instance are updated to the latest alpha

0.9.3 (2021-10-03)

Bug Fixes

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.9.2 (2021-02-16)

Features

0.9.1 (2021-02-16)

Features

  • add more box properties (0610c90)

0.9.0 (2021-02-15)

⚠ BREAKING CHANGES

  • Removes forwardRefAs util and AsProp type

Features

0.8.5 (2021-01-01)

0.8.4 (2020-08-20)

Bug Fixes

  • deps: upgrade forward-ref-as (f007b65)

0.8.3 (2020-08-10)

Bug Fixes

  • box.tsx: fix forward ref type (d69dafe)

0.8.2 (2020-08-09)

0.8.1 (2020-08-09)

Bug Fixes

  • fix memoization for lazy styles (b081446)

0.8.0 (2020-08-09)

⚠ BREAKING CHANGES

  • useLayout() has been removed and useResponsiveStyles() has been added

  • update @dash-ui/responsive (fd68ff6)

0.7.1 (2020-08-01)

0.7.0 (2020-07-31)

⚠ BREAKING CHANGES

  • The LayoutContext value has been changed and several types have been updated

Bug Fixes

  • layout: responsive props should always accept a "default" property (6f29c2f)

  • replace mq() with @dash-ui/responsive (cb6d3e8)

0.6.1 (2020-07-27)

Bug Fixes

  • layout: responsive props should always accept a "default" property (6f29c2f)

0.6.0 (2020-07-27)

⚠ BREAKING CHANGES

  • Drops support for @dash-ui/styles@<0.8.0

  • rename "variables" to "tokens" (1b2c23c)

0.5.2 (2020-07-24)

Bug Fixes

  • utils: fix forwardRefAs ref type (b99eadf)

0.5.1 (2020-07-24)

Bug Fixes

  • utils: fix forwardRefAs ref type (b99eadf)

0.5.0 (2020-07-24)

⚠ BREAKING CHANGES

  • layoutcontext: The one() function has been replaced with cls() and no longer needs to be called in order to return a class name
  • layout.tsx: Custom styles() instances must be provided directly to the <LayoutProvider>, as @dash-ui/react is no longer used

Features

  • utils: add forwardRefAs utility (c8e31fa)

  • layout.tsx: remove @dash-ui/react dependency (541af58)

  • layoutcontext: replace "one" with "cls" in context (7213be9)

0.4.0 (2020-07-16)

⚠ BREAKING CHANGES

  • deps-dev: Must be used with @dash-ui/styles@>=0.6.0 now

  • deps-dev: upgrade @dash-ui/styles to 0.6.1 (9c93ed3)

0.3.0 (2020-07-04)