diff --git a/apps/website/docs/configuration.md b/apps/website/docs/configuration.md index 480d3115..5fca68e4 100644 --- a/apps/website/docs/configuration.md +++ b/apps/website/docs/configuration.md @@ -22,7 +22,7 @@ Default: `0.01` Reading the width of elements isn't precise enough and can cause columns to jump between values. -### `columnWidth` [number | (conatinerWidth: number) => number] +### `columnWidth` [number | (containerWidth: number) => number] Default: `0` @@ -52,7 +52,7 @@ Default: `Shuffle.ALL_ITEMS` (`"all"`) Initial filter group. -### `gutterWidth` [number | (conatinerWidth: number) => number] +### `gutterWidth` [number | (containerWidth: number) => number] Default: `0` diff --git a/packages/shuffle/index.d.ts b/packages/shuffle/index.d.ts index 5cef54ac..47c5cc90 100644 --- a/packages/shuffle/index.d.ts +++ b/packages/shuffle/index.d.ts @@ -25,7 +25,7 @@ export interface ShuffleOptions { * A static number or function that returns a number which determines * how wide the columns are (in pixels). */ - columnWidth?: number | ((conatinerWidth: number) => number); + columnWidth?: number | ((containerWidth: number) => number); /** * If your group is not json, and is comma delimited, you could set delimiter to ','. @@ -53,7 +53,7 @@ export interface ShuffleOptions { * A static number or function that determines how wide the gutters * between columns are (in pixels). */ - gutterWidth?: number | ((conatinerWidth: number) => number); + gutterWidth?: number | ((containerWidth: number) => number); /** * Shuffle can be initialized with a sort object. It is the same object