UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

22 lines (18 loc) 705 B
"use client"; import { createComponent } from "../../core/components/create-component.js"; import { centerStyle } from "./center.style.js"; //#region src/components/center/center.tsx const { PropsContext: CenterPropsContext, usePropsContext: useCenterPropsContext, withContext } = createComponent("center", centerStyle); /** * `Center` is a component that aligns the child elements in the center within the component. * * @see https://yamada-ui.com/docs/components/center */ const Center = withContext("div", { base: { display: "flex", placeContent: "center", placeItems: "center" } })(); //#endregion export { Center, CenterPropsContext, useCenterPropsContext }; //# sourceMappingURL=center.js.map