import { ComponentProps } from 'react'; import * as React from 'react'; import { BoxProps } from '../Box'; import { ListEl } from './elements'; import { AllListProps } from './types'; export interface ListProps extends AllListProps> { /** Whether List should be an ol, ul element, or table */ as?: 'ol' | 'ul' | 'table'; /** Whether a placeholder width should be set when loading */ loading?: boolean; /** Should only be used internally to Gamut */ scrollable?: boolean; /** Whether the component should scroll to top after its rows update. */ scrollToTopOnUpdate?: boolean; /** A header node, rendered above the row content */ header?: React.ReactNode; height?: BoxProps['height']; minHeight?: BoxProps['minHeight']; /** If the list should render a right-side shadow when rows are scrollable to indicate more horizontal content */ shadow?: boolean; /** A custom message to override the default empty message */ emptyMessage?: React.ReactNode; /** * How the List container should handle overflow. */ overflow?: BoxProps['overflow']; /** * This is an override for the width of the wrapper element that contains the List. * It is useful for custom scroll and breakpoint handling. Use with caution. */ wrapperWidth?: BoxProps['width']; /** Whether to disable container queries on the List wrapper */ disableContainerQuery?: boolean; } export declare const List: React.ForwardRefExoticComponent & React.RefAttributes>;