1.0.2 • Published 3 years ago

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

Weekly downloads
-
License
EPL-2.0
Repository
gitlab
Last release
3 years ago

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
@watheia/micro.evangelist.sections.hybrid-homepage.reuse-components@watheia/micro.evangelist.sections.hybrid-homepage.talk-to-experts@watheia/micro.evangelist.sections.independent-teams@watheia/micro.evangelist.sections.reuse-components@watheia/micro.evangelist.sections.support-page.global-enterprise@watheia/micro.evangelist.sections.support-page.hero@watheia/micro.evangelist.sections.talk-to-experts@watheia/micro.evangelist.pages.enterprise-offering@watheia/micro.evangelist.sections.build-together@watheia/micro.evangelist.sections.enterprise-offering.reliability@watheia/micro.evangelist.sections.enterprise-offering.sales-cta@watheia/micro.evangelist.sections.enterprise-section@watheia/micro.evangelist.sections.hero@watheia/micro.evangelist.sections.hybrid-homepage.build-together@watheia/micro.evangelist.sections.hybrid-homepage.carousel-section@watheia/micro.evangelist.sections.hybrid-homepage.community@watheia/micro.evangelist.sections.hybrid-homepage.component-advantages@watheia/micro.evangelist.sections.hybrid-homepage.cta@watheia/micro.evangelist.sections.hybrid-homepage.develop-components@watheia/micro.evangelist.sections.hybrid-homepage.discover-components@watheia/micro.evangelist.sections.hybrid-homepage.enterprise-section@watheia/micro.evangelist.sections.hybrid-homepage.hero@watheia/micro.evangelist.sections.hybrid-homepage.independent-teams@watheia/micro.evangelist.sections.carousel-section@watheia/micro.evangelist.sections.community@watheia/micro.evangelist.sections.component-advantages@watheia/micro.evangelist.sections.cta@watheia/micro.evangelist.sections.develop-components@watheia/micro.evangelist.sections.discover-components@watheia/micro.evangelist.sections.enterprise-offering.advantage-cards@watheia/micro.evangelist.sections.enterprise-offering.component-analytics@watheia/micro.evangelist.sections.enterprise-offering.eco-system@watheia/micro.evangelist.sections.enterprise-offering.enterprise-bullets@watheia/micro.evangelist.sections.enterprise-offering.experts-support@watheia/micro.evangelist.sections.enterprise-offering.hero@watheia/micro.evangelist.sections.enterprise-offering.powering-enterprise@watheia/micro.evangelist.sections.support-page.support-channels@watheia/micro.evangelist.sections.support-page.support-cta@watheia/micro.evangelist.sections.support-page.support-developers@watheia/micro.evangelist.sections.support-page.support-packages
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago