UNPKG

@wordpress/components

Version:
36 lines (35 loc) • 1.2 kB
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); let ______context_index_ts = require("../../context/index.cjs"); let ______divider_index_ts = require("../../divider/index.cjs"); let __hook_ts = require("./hook.cjs"); let react_jsx_runtime = require("react/jsx-runtime"); // packages/components/src/card/card-divider/component.tsx function UnconnectedCardDivider(props, forwardedRef) { const dividerProps = (0, __hook_ts.useCardDivider)(props); return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(______divider_index_ts.Divider, { ...dividerProps, ref: forwardedRef }); } /** * `CardDivider` renders an optional divider within a `Card`. * It is typically used to divide multiple `CardBody` components from each other. * * ```jsx * import { Card, CardBody, CardDivider } from `@wordpress/components`; * * <Card> * <CardBody>...</CardBody> * <CardDivider /> * <CardBody>...</CardBody> * </Card> * ``` */ const CardDivider = (0, ______context_index_ts.contextConnect)(UnconnectedCardDivider, "CardDivider"); exports.CardDivider = CardDivider; exports.default = CardDivider; //# sourceMappingURL=component.cjs.map