@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
38 lines (37 loc) • 1.76 kB
TypeScript
import React from 'react';
import { BoxProps, CompoundStylesApiProps, PolymorphicFactory } from '../../../core';
export type CardSectionStylesNames = 'section';
export interface CardSectionProps extends BoxProps, CompoundStylesApiProps<CardSectionFactory> {
/** Determines whether the section should have a border, `false` by default */
withBorder?: boolean;
/** Determines whether the section should inherit padding from the parent `Card`, `false` by default */
inheritPadding?: boolean;
}
export type CardSectionFactory = PolymorphicFactory<{
props: CardSectionProps;
defaultRef: HTMLDivElement;
defaultComponent: 'div';
stylesNames: CardSectionStylesNames;
compound: true;
}>;
export declare const CardSection: (<C = "div">(props: import("../../../core/factory/create-polymorphic-component").PolymorphicComponentProps<C, CardSectionProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & Omit<React.FunctionComponent<(CardSectionProps & {
component?: any;
} & Omit<Omit<any, "ref">, "component" | keyof CardSectionProps> & {
ref?: any;
renderRoot?: ((props: any) => any) | undefined;
}) | (CardSectionProps & {
component: React.ElementType<any>;
renderRoot?: ((props: Record<string, any>) => any) | undefined;
})>, never> & import("../../../core/factory/factory").ThemeExtend<{
props: CardSectionProps;
defaultRef: HTMLDivElement;
defaultComponent: 'div';
stylesNames: CardSectionStylesNames;
compound: true;
}> & import("../../../core/factory/factory").ComponentClasses<{
props: CardSectionProps;
defaultRef: HTMLDivElement;
defaultComponent: 'div';
stylesNames: CardSectionStylesNames;
compound: true;
}> & Record<string, never>;