프로젝트
GitHub에서 보기
jxnblk/react-css-grid
소개
React layout component based on CSS Grid Layout and built with styled-components
웹 및 앱 개발What you can do
- Responsive grid layout with zero media queries
- Simple API for handling tiled layouts
- Customizable column width and gutters
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalReact CSS Grid
React layout component based on CSS Grid Layout and built with styled-components
npm i react-css-grid
// Example usage
import React from 'react'
import Grid from 'react-css-grid'
class App extends React.Component {
render () {
return (
<Grid
width={320}
gap={24}>
<div>Column</div>
<div>Column</div>
<div>Column</div>
<div>Column</div>
</Grid>
)
}
}
Features
- Responsive grid layout with zero media queries
- Simple API for handling tiled layouts
- Customizable column width and gutters
Props
width (number or string)
Sets the width at which child elements will break into columns. Pass a number for pixel values or a string for any other valid CSS length.
<Grid width={512} />
gap (number or string)
Sets the gutter (grid-gap) between columns.
Pass a number for pixel values or a string for any other valid CSS length.
<Grid gap={16} />
align (string)
Sets align-items to control child element alignment.
Browser Support
See http://caniuse.com/#feat=css-grid
Related
관련 프로젝트 살펴보기
불러오는 중…