2.2.0 • Published 8 months ago

@hixme-ui/container v2.2.0

Weekly downloads
3
License
MIT
Repository
-
Last release
8 months ago

Container

npm i --save @hixme-ui/container

View it live

Usage

import Container from '@hixme-ui/container'

<Container padding='30px' shadow>
  <p>Content goes here</p>
</Container>

<Container flex textCenter opacity='.6'>
  <p>Flex content goes here</p>
</Container>

Default Props

NameTypeDefault
paddingstring20px
backgroundstringnone

Text Align

NameTypeDescription
textLeftbooltext-align: left
textCenterbooltext-align: center
textRightbooltext-align: right

Background Color

NameTypeDescription
backgroundstringApply CSS background properties
defaultboolDefault will apply a white background
primarybool
successbool
warningbool
errorbool
mutedbool
whitebool
blackbool
redbool
bluebool
purplebool
yellowbool
greenbool
lightbool
lighterbool
lightestbool

Borders

NameTypeDescription
borderstringApply CSS border properties
borderColorstringApply CSS border-color properties
borderTopstringApply CSS border-top properties
borderBottomstringApply CSS border-bottom properties
borderLeftstringApply CSS border-left properties
borderRightstringApply CSS border-right properties
dashedboolApply 2px, grey dashed border
roundedboolApply 6px, border radius to container

Margin

NameTypeDescription
marginstringApply CSS margin properties
marginLeftstringApply CSS margin-left properties
marginRightstringApply CSS margin-right properties
marginTopstringApply CSS margin-top properties
marginBottomstringApply CSS margin-bottom properties
marginSidesstringApply CSS margin-left and right properties

Padding

NameTypeDescription
paddingstringApply CSS padding properties
paddingLeftstringApply CSS padding-left properties
paddingRightstringApply CSS padding-right properties
paddingTopstringApply CSS padding-top properties
paddingBottomstringApply CSS padding-bottom properties
paddingSidesstringApply CSS padding-left and right properties
noPaddingboolRemove default padding from container

Width

NameTypeDescription
widthstringApply CSS width properties
minWidthstringApply CSS min-width properties
maxWidthstringApply CSS max-width properties

Height

NameTypeDescription
heightstringApply CSS height properties
minHeightstringApply CSS min-height properties
maxHeightstringApply CSS max-height properties

Flex Properties

NameTypeDescription
flexboolApply display: flex
inlineFlexboolApply display: inline-flex
flexWrapboolApply flex-wrap: wrap
flexRowboolApply flex-direction: row
flexColumnboolApply flex-direction: column
justifyStartboolApply justify-content: flex-start
justifyEndboolApply justify-content: flex-end
justifyCenterboolApply justify-content: center
justifySpaceBetweenboolApply justify-content: space-between
justifySpaceAroundboolApply justify-content: space-around
alignStartboolApply align-items: flex-start
alignEndboolApply align-items: flex-end
alignCenterboolApply align-items: center
alignSpaceBetweenboolApply align-items: space-between
alignSpaceAroundboolApply align-items: space-around
directionstringApply CSS flex-direction properties
alignItemsstringApply CSS align-items properties
alignContentstringApply CSS align-content properties
justifyContentstringApply CSS justify-content properties
alignSelfstringApply CSS align-self properties
flexBasisstringApply CSS flex-basis properties
flexGrowstringApply CSS flex-grow properties
flexShrinkstringApply CSS flex-shrink properties

Other

NameTypeDescription
withOutlineboolAdd 1px solid red outline
shadowboolAdd box shadow to container
heavyShadowboolAdd heavy box shadow to container
animateboolAdd animation property to container
opacitynumberAdd opacity for container.
2.2.0

8 months ago

2.1.0

2 years ago

2.0.0-alpha.13

2 years ago

2.0.0

2 years ago

3.0.2

4 years ago

2.0.0-alpha.12

4 years ago

2.0.0-alpha.7

4 years ago

2.0.0-alpha.8

4 years ago

2.0.0-alpha.9

4 years ago

2.0.0-alpha.11

4 years ago

2.0.0-alpha.3

4 years ago

2.0.0-alpha.10

4 years ago

2.0.0-alpha.4

4 years ago

2.0.0-alpha.5

4 years ago

2.0.0-alpha.6

4 years ago

2.0.0-alpha.1

4 years ago

2.0.0-alpha.2

4 years ago

1.20.5

5 years ago

1.20.7

5 years ago

1.20.4

6 years ago

1.20.2

6 years ago

1.20.1

7 years ago

2.0.0-alpha.0

7 years ago

1.20.0

7 years ago

1.19.2

7 years ago

1.17.2

7 years ago

1.17.1

7 years ago

1.16.5

7 years ago

1.15.3

7 years ago

1.15.0

7 years ago

1.14.3

7 years ago

1.14.1

7 years ago

1.14.0

7 years ago

1.11.0

7 years ago

1.10.0

7 years ago

1.9.1

7 years ago

1.8.1

7 years ago

1.9.0

7 years ago

1.8.0

7 years ago

1.7.0

7 years ago

1.6.0

7 years ago

1.1.1

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago