UNPKG

599 BTypeScriptView Raw
1import * as React from 'react';
2import { ButtonProps, CommonButtonProps } from './Button';
3import { BsPrefixRefForwardingComponent } from './helpers';
4export interface DropdownToggleProps extends Omit<ButtonProps, 'as'> {
5 as?: React.ElementType;
6 split?: boolean;
7 childBsPrefix?: string;
8}
9type DropdownToggleComponent = BsPrefixRefForwardingComponent<'button', DropdownToggleProps>;
10export type PropsFromToggle = Partial<Pick<React.ComponentPropsWithRef<DropdownToggleComponent>, CommonButtonProps>>;
11declare const DropdownToggle: DropdownToggleComponent;
12export default DropdownToggle;