2.1.0 • Published 11 months ago

@hixme-ui/container v2.1.0

Weekly downloads
3
License
MIT
Repository
-
Last release
11 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.1.0

11 months ago

2.0.0-alpha.13

1 year ago

2.0.0

1 year ago

3.0.2

3 years ago

2.0.0-alpha.12

3 years ago

2.0.0-alpha.7

3 years ago

2.0.0-alpha.8

3 years ago

2.0.0-alpha.9

3 years ago

2.0.0-alpha.11

3 years ago

2.0.0-alpha.3

3 years ago

2.0.0-alpha.10

3 years ago

2.0.0-alpha.4

3 years ago

2.0.0-alpha.5

3 years ago

2.0.0-alpha.6

3 years ago

2.0.0-alpha.1

3 years ago

2.0.0-alpha.2

3 years ago

1.20.5

3 years ago

1.20.7

3 years ago

1.20.4

5 years ago

1.20.2

5 years ago

1.20.1

6 years ago

2.0.0-alpha.0

6 years ago

1.20.0

6 years ago

1.19.2

6 years ago

1.17.2

6 years ago

1.17.1

6 years ago

1.16.5

6 years ago

1.15.3

6 years ago

1.15.0

6 years ago

1.14.3

6 years ago

1.14.1

6 years ago

1.14.0

6 years ago

1.11.0

6 years ago

1.10.0

6 years ago

1.9.1

6 years ago

1.8.1

6 years ago

1.9.0

6 years ago

1.8.0

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.1.1

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago