Grid
A responsive grid layout component for organizing content.
Grid
A component that arranges child elements into rows and columns with consistent spacing.
Import
Features
- Configurable number of columns
- Consistent spacing between items
- Automatic row organization
- Responsive layout support
- Compatible with any child components
Props
Prop | Type | Default | Description |
---|---|---|---|
columns | number | 2 | Number of columns in the grid |
spacing | number | 16 | Spacing between items (in points) |
className | string | — | Additional Tailwind classes |
style | StyleProp<ViewStyle> | — | Additional style object |
children | React.ReactNode[] | Required | Items to display in the grid |