UNPKG

@mui/x-data-grid

Version:

The Community plan edition of the Data Grid components (MUI X).

33 lines 1.18 kB
import * as React from 'react'; import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js"; import type { GridSlotProps } from '../../models'; export interface ColumnsPanelState { /** * If `true`, the columns panel is open. */ open: boolean; } export type ColumnsPanelTriggerProps = Omit<GridSlotProps['baseButton'], 'className'> & { /** * A function to customize rendering of the component. */ render?: RenderProp<GridSlotProps['baseButton'], ColumnsPanelState>; /** * Override or extend the styles applied to the component. */ className?: string | ((state: ColumnsPanelState) => string); }; /** * A button that opens and closes the columns panel. * It renders the `baseButton` slot. * * Demos: * * - [Columns Panel](https://mui.com/x/react-data-grid/components/columns-panel/) * * API: * * - [ColumnsPanelTrigger API](https://mui.com/x/api/data-grid/columns-panel-trigger/) */ declare const ColumnsPanelTrigger: React.ForwardRefExoticComponent<ColumnsPanelTriggerProps> | React.ForwardRefExoticComponent<Omit<ColumnsPanelTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>; export { ColumnsPanelTrigger };