Skip to content

Commit

Permalink
feat(TableToolbarMenu): add typescript typings
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Feb 24, 2023
1 parent f7cabdf commit fa97baf
Showing 1 changed file with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,33 @@
* LICENSE file in the root directory of this source tree.
*/

import { Settings } from '@carbon/icons-react';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import OverflowMenu from '../OverflowMenu';
import { Settings } from '@carbon/icons-react';
import { usePrefix } from '../../internal/usePrefix';
import OverflowMenu from '../OverflowMenu';

export interface TableToolbarMenuProps extends React.HTMLAttributes<HTMLDivElement> {
children: React.ReactNode;

/**
* Provide an optional class name for the toolbar menu
*/
className?: string;

/**
* The description of the menu icon.
*/
iconDescription: string;

/**
* Optional prop to allow overriding the default menu icon
*/
renderIcon?: React.ReactNode;
}

const TableToolbarMenu = ({
const TableToolbarMenu: React.FC<TableToolbarMenuProps> = ({
className,
renderIcon,
iconDescription,
Expand Down

0 comments on commit fa97baf

Please sign in to comment.