@reusable-ui/collapsible
Version:
A capability of UI to expand/reduce its size or toggle the visibility.
20 lines (19 loc) • 751 B
JavaScript
// cssfn:
import {
// writes css in javascript:
style, cssVars, } from '@cssfn/core'; // writes css in javascript
const [lastKnownExpandedSizeVars] = cssVars({ prefix: 'lkes', minify: false }); // shared variables: ensures the server-side & client-side have the same generated css variable names
/**
* Uses LastKnownExpandedSize variables.
* @param config A configuration of `lastKnownExpandedSizeRule`.
* @returns A `LastKnownExpandedSizeStuff` represents the LastKnownExpandedSize variable rules.
*/
export const usesLastKnownExpandedSize = (config) => {
return {
lastKnownExpandedSizeRule: () => style({
/* not implemented yet */
}),
lastKnownExpandedSizeVars,
};
};
//#endregion lastKnownExpandedSize