Skip to content

Commit

Permalink
Fix documentation margin/gap property
Browse files Browse the repository at this point in the history
  • Loading branch information
fmkra committed Dec 24, 2023
1 parent fa36b36 commit 6fe50f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ More examples in [example](example) directory.
- `widths` - array of width breakpoints in pixels (e.g. `[400, 800, 1200]`)
- `ratios` - array of aspect ratios. Its length has to be one greater than `widths` array (e.g. `[16/9, 32/9, 48/9, 64/9]` along with `widths` above would result in row of proportion at most 16:9 (e.g. one 16:9 image or two 9:16, etc.) for screen widths 0-400px, 32:9 for 400-800px, etc.)
- `percentVw` (default: 100) - percent of viewport width that gallery takes (used for image optimization, doesn't change how gallery looks)
- `margin` (default: `"2px"`) - margin between images, needs to be valid css value (e.g. `"2px"`, `"2rem"`, etc.)
- `gap` (default: `"2px"`) - gap between images, needs to be valid css value (e.g. `"2px"`, `"2rem"`, etc.)
- `imgLoader` (default: next default loader) - image loader, see [next/image](https://nextjs.org/docs/api-reference/next/image#loader)
- `lastRowBehavior` (default: `"match-previous"`) - `"match-previous"`, `"fill"` or `"preserve"`. See [last row behavior](#last-row-behavior) section below.
- for other props available only for certain `lastRowBehavior` values see [last row behavior](#last-row-behavior) section below.
Expand Down

0 comments on commit 6fe50f4

Please sign in to comment.