@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
36 lines (35 loc) • 1.68 kB
TypeScript
import React from 'react';
import { BoxProps, CompoundStylesApiProps, PolymorphicFactory } from '../../../core';
export type AppShellSectionStylesNames = 'section';
export interface AppShellSectionProps extends BoxProps, CompoundStylesApiProps<AppShellSectionFactory> {
/** Determines whether the section should take all available space, `false` by default */
grow?: boolean;
}
export type AppShellSectionFactory = PolymorphicFactory<{
props: AppShellSectionProps;
defaultRef: HTMLDivElement;
defaultComponent: 'div';
stylesNames: AppShellSectionStylesNames;
compound: true;
}>;
export declare const AppShellSection: (<C = "div">(props: import("../../../core/factory/create-polymorphic-component").PolymorphicComponentProps<C, AppShellSectionProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & Omit<React.FunctionComponent<(AppShellSectionProps & {
component?: any;
} & Omit<Omit<any, "ref">, "component" | keyof AppShellSectionProps> & {
ref?: any;
renderRoot?: ((props: any) => any) | undefined;
}) | (AppShellSectionProps & {
component: React.ElementType<any>;
renderRoot?: ((props: Record<string, any>) => any) | undefined;
})>, never> & import("../../../core/factory/factory").ThemeExtend<{
props: AppShellSectionProps;
defaultRef: HTMLDivElement;
defaultComponent: 'div';
stylesNames: AppShellSectionStylesNames;
compound: true;
}> & import("../../../core/factory/factory").ComponentClasses<{
props: AppShellSectionProps;
defaultRef: HTMLDivElement;
defaultComponent: 'div';
stylesNames: AppShellSectionStylesNames;
compound: true;
}> & Record<string, never>;