We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core Features:
display: grid
interface GridProps extends ComponentProps<'div'> { templateColumns?: CSSProperties['gridTemplateColumns']; templateRows?: CSSProperties['gridTemplateRows']; templateAreas?: CSSProperties['gridTemplateAreas']; gap?: CSSProperties['gap']; autoFlow?: CSSProperties['gridAutoFlow']; autoRows?: CSSProperties['gridAutoRows']; autoColumns?: CSSProperties['gridAutoColumns']; inline?: boolean; style?: CSSProperties; asChild?: boolean; } interface GridItemProps extends ComponentProps<'div'> { column?: CSSProperties['gridColumn']; row?: CSSProperties['gridRow']; area?: CSSProperties['gridArea']; justifySelf?: CSSProperties['justifySelf']; alignSelf?: CSSProperties['alignSelf']; colSpan?: number; rowSpan?: number; colStart?: number | 'auto'; colEnd?: number | 'auto'; rowStart?: number | 'auto'; rowEnd?: number | 'auto'; style?: CSSProperties; asChild?: boolean; }
// Template Areas Example <Grid.Root templateAreas={` "header header header" "sidebar main main" "footer footer footer" `} templateColumns="200px 1fr" gap="1rem" > <Grid.Item area="header"> <Box>Header</Box> </Grid.Item> <Grid.Item area="sidebar"> <Box>Sidebar</Box> </Grid.Item> <Grid.Item area="main"> <Box>Main</Box> </Grid.Item> <Grid.Item area="footer"> <Box>Footer</Box> </Grid.Item> </Grid.Root> // Spanning Example <Grid.Root templateColumns="repeat(4, 1fr)" templateRows="repeat(2, 1fr)" gap="1rem" > <Grid.Item rowSpan={2}> <Box>rowSpan 2</Box> </Grid.Item> <Grid.Item colSpan={2}> <Box>colSpan 2</Box> </Grid.Item> </Grid.Root>
The text was updated successfully, but these errors were encountered:
synuns
No branches or pull requests
Component Function Definition
Core Features:
Design Requirements
Grid Container
display: grid
Grid Items
Component Specifications
Usage Examples
Technical Considerations
Reference Materials
Additional Discussion Points
The text was updated successfully, but these errors were encountered: