styled-components-flexbox-tooltip
TypeScript icon, indicating that this package has built-in type declarations

1.4.2 • Public • Published

styled-components-flexbox-tooltip


Logo



Write faster adn DRY'er code !

Write

import styled from "styled-components";
import flex from "styled-components-flexbox-tooltip";

const Wrapper = styled.div`
  ${flex.CenterCenterColumn};
  background-color: red;
  padding: 1.1rem;
`;

Instead of

import styled from "styled-components";

const Wrapper = styled.div`
  display: flex;
  align-items: center;
  justify-content: center;
  flex-directon: column;
  background-color: red;
  padding: 1.1rem;
`;

Instruction

The first word is align-center property the second justify-content and the last determines its direction.

All options:

  • CenterDefault
  • CenterDefaultColumn
  • DefaultCenter
  • DefaultCenterColumn
  • CenterCenter
  • CenterCenterColumn
  • CenterAround
  • CenterAroundColumn
  • CenterBetween
  • CenterBetweenColumn
  • CenterEvenly
  • CenterEvenlyColumn
  • Wrap

Creators

watFiree
watFiree

Readme

Keywords

none

Package Sidebar

Install

npm i styled-components-flexbox-tooltip

Weekly Downloads

2

Version

1.4.2

License

Unlicensed

Unpacked Size

4.58 kB

Total Files

4

Last publish

Collaborators

  • watfiree