Skip to content

Commit

Permalink
feat: add grid col to the grid doc
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaAmar committed Nov 22, 2024
1 parent a0c0aef commit aec412a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions apps/docs/src/app/_components/playground/grid/gridCol.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { Grid, GridItem, Paper } from '@pillar-ui/core'

const shared = {
className: 'ex-striped',
as: Paper,
height: '96p',
gap: '4',
p: '5',
corner: '2',
} as const

export const GridCol = () => {
return (
<>
<Grid gap="3" cols={{ default: 'repeat(5, 1fr)' }}>
<GridItem col={{ default: '1/2' }} {...shared}>
Hello
</GridItem>
<GridItem col={{ default: '2/6' }} {...shared}>
Hello
</GridItem>
</Grid>
<Grid gap="3" cols={{ default: 'repeat(12, 1fr)' }}>
<GridItem col={{ default: 'span 3' }} {...shared}>
Hello
</GridItem>
<GridItem col={{ default: 'span 6' }} {...shared}>
Hello
</GridItem>
<GridItem col={{ default: 'span 3' }} {...shared}>
Hello
</GridItem>
</Grid>
</>
)
}

0 comments on commit aec412a

Please sign in to comment.