carbon-react
Version:
A library of reusable React components for easily building user interfaces.
26 lines (25 loc) • 927 B
TypeScript
import React from "react";
/**
* @deprecated `PicklistGroup` has been deprecated. See the Carbon documentation for migration details.
*/
export interface PicklistGroupProps {
/** Group title */
title: React.ReactNode;
/** Item content */
children: React.ReactNode;
/** Define if item is of type add or remove */
type: "add" | "remove";
/** Handler invoked when add/remove button is clicked or when space/enter is pressed on the whole item */
onChange: () => void;
/** @private @ignore */
index?: number;
/** @private @ignore */
listIndex?: number;
/** @private @ignore */
isLastGroup?: boolean;
}
/**
* @deprecated `PicklistGroup` has been deprecated. See the Carbon documentation for migration details.
*/
export declare const PicklistGroup: React.ForwardRefExoticComponent<PicklistGroupProps & React.RefAttributes<HTMLButtonElement>>;
export default PicklistGroup;