UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

44 lines (40 loc) 808 B
"use strict"; "use client"; 'use strict'; var factory = require('../../styled-system/factory.cjs'); const AbsoluteCenter = factory.chakra("div", { base: { position: "absolute", display: "flex", alignItems: "center", justifyContent: "center" }, variants: { axis: { horizontal: { insetStart: "50%", translate: "-50%", _rtl: { translate: "50%" } }, vertical: { top: "50%", translate: "0 -50%" }, both: { insetStart: "50%", top: "50%", translate: "-50% -50%", _rtl: { translate: "50% -50%" } } } }, defaultVariants: { axis: "both" } }); AbsoluteCenter.displayName = "AbsoluteCenter"; exports.AbsoluteCenter = AbsoluteCenter;