` that surrounds the `children`. This is
* generally used to apply custom `style` or `className`.
*/
contentProps?: PropsWithRef
>;
}
/**
* @see {@link https://react-md.dev/components/card | Card Demos}
* @since 6.0.0 Removed the `align` prop.
* @since 6.0.0 Renamed the `beforeChildren` and `afterChildren` props to
* `beforeAddon` and `afterAddon`.
* @since 6.0.0 Removed the `contentClassName` prop in favor of the
* `contentProps`.
* @since 6.0.0 No longer uses the `TextIconSpacing` component and instead
* relies on the CSS `gap` for spacing.
* @since 6.0.0 Renders as a `` instead of a `
`
*/
export function CardHeader(props: CardHeaderProps): ReactElement {
const {
ref,
className,
children,
beforeAddon,
afterAddon,
contentProps,
...remaining
} = props;
return (
{beforeAddon}
{children}
{afterAddon}
);
}