UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

37 lines (36 loc) 1.78 kB
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").PolymorphicComponentProps<C, CardSectionProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Omit<import("react").FunctionComponent<(CardSectionProps & { component?: any; } & Omit<Omit<any, "ref">, "component" | keyof CardSectionProps> & { ref?: any; renderRoot?: ((props: any) => any) | undefined; }) | (CardSectionProps & { component: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>; 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>;