@nex-ui/react
Version:
🎉 A beautiful, modern, and reliable React component library.
39 lines (36 loc) • 1.07 kB
JavaScript
"use client";
import { jsx } from 'react/jsx-runtime';
import { useDefaultProps } from '../utils/useDefaultProps.mjs';
import { useStyles } from '../utils/useStyles.mjs';
import { useSlotClasses } from '../utils/useSlotClasses.mjs';
import { useSlot } from '../utils/useSlot.mjs';
import { cardFooterRecipe } from '../../theme/recipes/card.mjs';
const slots = [
'root'
];
const CardFooter = (inProps)=>{
const props = useDefaultProps({
name: 'CardFooter',
props: inProps
});
const style = useStyles({
ownerState: props,
name: 'CardFooter',
recipe: cardFooterRecipe
});
const slotClasses = useSlotClasses({
name: 'CardFooter',
slots
});
const [CardFooterRoot, getCardFooterRootProps] = useSlot({
style,
classNames: slotClasses.root,
elementType: 'div',
externalForwardedProps: props
});
return /*#__PURE__*/ jsx(CardFooterRoot, {
...getCardFooterRootProps()
});
};
CardFooter.displayName = 'CardFooter';
export { CardFooter };