@carbon/react
Version:
React components for the Carbon Design System
54 lines (53 loc) • 1.9 kB
TypeScript
/**
* Copyright IBM Corp. 2016, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
export interface TableToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
/**
* Specify a label to be read by screen readers on the container node
* 'aria-label' of the TableToolbar component.
*/
['aria-label']?: string;
/**
* @deprecated please use `aria-label` instead.
* 'aria-label' of the TableToolbar component.
*/
ariaLabel?: string;
/**
* Pass in the children that will be rendered inside the TableToolbar
*/
children: React.ReactNode;
/**
* `lg` Change the row height of table
*/
size?: 'sm' | 'lg';
}
declare const TableToolbar: {
({ ["aria-label"]: ariaLabel, ariaLabel: deprecatedAriaLabel, children, size, ...rest }: TableToolbarProps): import("react/jsx-runtime").JSX.Element;
propTypes: {
/**
* 'aria-label' of the TableToolbar component.
* Specify a label to be read by screen readers on the container node
*/
"aria-label": PropTypes.Requireable<string>;
/**
* Deprecated, please use `aria-label` instead.
* Specify a label to be read by screen readers on the container node.
* 'aria-label' of the TableToolbar component.
*/
ariaLabel: (props: Record<string, any>, propName: string, componentName: string, ...rest: any[]) => any;
/**
* Pass in the children that will be rendered inside the TableToolbar
*/
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
/**
* `lg` Change the row height of table
*/
size: PropTypes.Requireable<string>;
};
};
export default TableToolbar;