motion-v
Version:
<p align="center"> <img width="100" height="100" alt="Motion logo" src="https://user-images.githubusercontent.com/7850794/164965523-3eced4c4-6020-467e-acde-f11b7900ad62.png" /> </p> <h1 align="center">Motion for Vue</h1>
24 lines (23 loc) • 710 B
TypeScript
import { LayoutGroupState } from './context';
/**
* Props for configuring layout group behavior
*/
export interface LayoutGroupProps {
/** Optional ID for the layout group */
id?: string;
/**
* Controls inheritance of parent group properties:
* - true: Inherit both id and group
* - 'id': Only inherit id
* - 'group': Only inherit group
*/
inherit?: boolean | 'id' | 'group';
}
/**
* Hook to create and manage a layout group
* Handles group inheritance, force updates, and context management
*/
export declare function useLayoutGroupProvider(props: LayoutGroupProps): LayoutGroupState;
export declare function useLayoutGroup(): {
forceRender: VoidFunction;
};