@anctech/grid
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@anctech/grid

Usage

<AnctechRow vAlign='start' hAlign={{xs: 'start', md: 'center', lg: 'end'}} colsPerRow={{xs: 3, md: 4, lg: 5}}>
  <AnctechCols colSize={3} selfAlign='start' offset={{xs: 3, lg: 6}}>
    {other contents}
  </AnctechCols>
</AnctechRow>

Props

colsPerRow (optional)

Type: object Description: colsPerRow sets many column displaying on each row for different screen size.

hAlign (optional)

Type: object Description: hAlign sets horizontal alignment for different screen size.

vAlign (optional)

Type: 'start' | 'center' | 'end' Description: vAlign sets vertical alginment.

colSize (optional)

Type: number | object Description: colSize sets size for each column for different screen size.

selfAlign (optional)

Type: 'start' | 'center' | 'end' Description: selfAlign sets vertical alignment for signle column.

offset (optional)

Type: object Description: offset sets offest for a column.

Package Sidebar

Install

npm i @anctech/grid

Weekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

10.5 kB

Total Files

7

Last publish

Collaborators

  • ryanzhangau