@wordpress/components
Version:
UI components for WordPress.
34 lines (33 loc) • 1.07 kB
JavaScript
;
Object.defineProperties(exports, {
__esModule: { value: true },
[Symbol.toStringTag]: { value: "Module" }
});
let ______context_index_ts = require("../../context/index.cjs");
let ______flex_index_ts = require("../../flex/index.cjs");
let __hook_ts = require("./hook.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
// packages/components/src/card/card-footer/component.tsx
function UnconnectedCardFooter(props, forwardedRef) {
const footerProps = (0, __hook_ts.useCardFooter)(props);
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(______flex_index_ts.Flex, {
...footerProps,
ref: forwardedRef
});
}
/**
* `CardFooter` renders an optional footer within a `Card`.
*
* ```jsx
* import { Card, CardBody, CardFooter } from `@wordpress/components`;
*
* <Card>
* <CardBody>...</CardBody>
* <CardFooter>...</CardFooter>
* </Card>
* ```
*/
const CardFooter = (0, ______context_index_ts.contextConnect)(UnconnectedCardFooter, "CardFooter");
exports.CardFooter = CardFooter;
exports.default = CardFooter;
//# sourceMappingURL=component.cjs.map