UNPKG

@reusable-ui/collapsible

Version:

A capability of UI to expand/reduce its size or toggle the visibility.

24 lines (23 loc) 863 B
import { Factory, CssRule, CssVars } from '@cssfn/core'; export interface LastKnownExpandedSizeVars { /** * The last known inline size (width) of `<LastKnownExpandedSize>`. */ inlineSize: any; /** * The last known block size (height) of `<LastKnownExpandedSize>`. */ blockSize: any; } export interface LastKnownExpandedSizeStuff { lastKnownExpandedSizeRule: Factory<CssRule>; lastKnownExpandedSizeVars: CssVars<LastKnownExpandedSizeVars>; } export interface LastKnownExpandedSizeConfig { } /** * Uses LastKnownExpandedSize variables. * @param config A configuration of `lastKnownExpandedSizeRule`. * @returns A `LastKnownExpandedSizeStuff` represents the LastKnownExpandedSize variable rules. */ export declare const usesLastKnownExpandedSize: (config?: LastKnownExpandedSizeConfig) => LastKnownExpandedSizeStuff;