UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

18 lines (17 loc) 573 B
import React from "react"; //#region src/PageLayout/usePaneWidth.d.ts type Measurement = `${number}px`; type CustomWidthOptions = { min: Measurement; default: Measurement; max: Measurement; }; type PaneWidth = 'small' | 'medium' | 'large'; /** * Width value for the pane - defines constraints and defaults only. * - `PaneWidth`: Preset size ('small' | 'medium' | 'large') * - `CustomWidthOptions`: Explicit min/default/max constraints */ type PaneWidthValue = PaneWidth | CustomWidthOptions; //#endregion export { CustomWidthOptions, PaneWidth, PaneWidthValue };