1.4.2 • Published 4 years ago

styled-components-flexbox-tooltip v1.4.2

Weekly downloads
1
License
Unlicensed
Repository
github
Last release
4 years ago

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
1.4.2

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.2.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago