soda-material
Version:
A React(>=18) component library that may follow [Material Design 3](https://m3.material.io/components) (a.k.a. Material You)
14 lines (13 loc) • 573 B
TypeScript
/// <reference types="react" />
export type ViewTransitionHandle = {
replace(children: React.ReactNode): void;
};
/**
* [experimental]: This component can use both ref or props to toggle transition.
*/
export declare const ViewTransition: import("react").ForwardRefExoticComponent<{
children?: React.ReactNode;
old?: React.ReactNode;
new?: React.ReactNode;
as?: keyof JSX.IntrinsicElements | undefined;
} & Omit<import("react").HTMLProps<HTMLElement>, "as" | "ref" | "children" | "old" | "new"> & import("react").RefAttributes<ViewTransitionHandle>>;