@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
18 lines (14 loc) • 615 B
JavaScript
"use client";
import { createComponent } from "../../core/components/create-component.js";
import { loadingStyle } from "./loading.style.js";
//#region src/components/loading/loading.tsx
const initialProps = { "data-loading": "" };
const superProps = ({ css, duration, dur = duration,...rest }) => ({
css,
dur,
...rest
});
const { PropsContext: LoadingPropsContext, usePropsContext: useLoadingPropsContext, withContext } = createComponent("loading", loadingStyle);
//#endregion
export { LoadingPropsContext, initialProps, superProps, useLoadingPropsContext, withContext };
//# sourceMappingURL=loading.js.map