ExamplesPropertiesSimplest usageBasic usageSpecifing a Maximum Column WidthCustom Horizontal and Vertical Gap SpacingCustom Column Width WeightingsReadme
Wrappable Fluid Grid
Properties
style
Record<string, any> | undefined
className
string | undefined
itemClassName
string | undefined
data
DataItem[]
required
gap
number | { x: number; y: number; } | undefined
minColWidth
number | undefined
maxColWidth
number | undefined
minMaxWeight
number | undefined
Simplest usage
import Grid from 'react-wrappable-fluid-grid';
Basic usage
Start By:
- Input data array
- Define gap spacing in px
- Define minimum column width
Resize the screen to try it out
Specifing a Maximum Column Width
Custom Horizontal and Vertical Gap Spacing
Custom Column Width Weightings
description: weighted average of column width's min/max balance.
1 is more lenient towards maximum column width, meaning wider columns.
0 is more lenient towards minimum column width, meaning skinnier columns
value: from 0 to 1
defaultValue: 0.5