JSPM

@watheia/micro.base-ui.layout.align

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q51351F
  • License EPL-2.0

Package Exports

  • @watheia/micro.base-ui.layout.align

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@watheia/micro.base-ui.layout.align) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Align

A set of CSS components to align elements.

text

Same as css property text-align.

import { text } from "@bit/bit.base-ui.layout.align"
function A() {
  return <div className={text.center}>a</div>
}

Breakpoints

Align elements according to html breakpoints.

import { text } from '@bit/bit.base-ui.layout.align';
function B() {
    return <div className={classNames(text.left, text.md.center text.l.left)}>
            b
    </div>
}

Margin center

Same as margin-left: auto; margin-right: auto.

import { marginCenter } from "@bit/bit.base-ui.layout.align"

function C() {
  return <div className={classNames(marginCenter)}>this is centered</div>
}

Breakpoints:

  • (default) (all)
  • xs 360px
  • sm 480px
  • md 768px
  • l 920px
  • lg 1080px
  • xl 1440px