MCPcopy Create free account
hub / github.com/bvaughn/react-resizable-panels / getAxisLayoutKey

Function getAxisLayoutKey

lib/grid/utils/getAxisLayoutKey.ts:6–8  ·  view source on GitHub ↗
(axis: GridAxis)

Source from the content-addressed store, hash-verified

4 * Returns the key used for the specified axis in a GridLayout (e.g. `layout.columns`)
5 */
6export function getAxisLayoutKey(axis: GridAxis): "columns" | "rows" {
7 return axis === "column" ? "columns" : "rows";
8}

Callers 3

GridComponentFunction · 0.90
createResizeAxisFunction · 0.90
readTemplateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected