Skip to Content
✨ QuickCode UI keeps growing! More components, more features, and more ways to make your projects shine. Stay tuned & maybe… hire me or sponsor me 😉 
DocumentationFlexGrid

FlexGrid

A layout component that automatically wraps children when they don’t fit, with consistent spacing control.

Install Dependencies

npx
quickcode-ui add FlexGrid

Examples

Default

Basic Usage

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6

Alignment

With Alignment

Small
Medium
Regular
Large

Custom Row and Column Gap

Separate Row & Column Gaps

1
2
3
4
5
6
7
8
9
10
11
12

Props

PropTypeDefaultDescription
gapstring'2'Spacing between all children (Tailwind spacing scale)
rowGapstringundefinedVertical spacing between rows
columnGapstringundefinedHorizontal spacing between columns
align'start' | 'center' | 'end' | 'stretch' | 'baseline'undefinedAlignment of children along the cross axis
justify'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'undefinedAlignment of children along the main axis
classNamestringundefinedAdditional CSS classes
Last updated on