Skip to content

Commit 0bbceb4

Browse files
authored
update TagGroup types (#3728)
1 parent 9d21a67 commit 0bbceb4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/@react-types/tag/src/index.d.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,20 @@
1010
* governing permissions and limitations under the License.
1111
*/
1212

13-
import {CollectionBase, DOMProps, ItemProps, MultipleSelection, Node, StyleProps} from '@react-types/shared';
13+
import {CollectionBase, DOMProps, ItemProps, Node, StyleProps} from '@react-types/shared';
1414
import {GridState} from '@react-stately/grid';
1515
import {Key, RefObject} from 'react';
1616

17-
export interface TagGroupProps<T> extends CollectionBase<T>, MultipleSelection {
18-
disabledKeys?: Iterable<Key>,
19-
isDisabled?: boolean,
17+
export interface TagGroupProps<T> extends Omit<CollectionBase<T>, 'disabledKeys'> {
18+
/** Whether the TagGroup allows removal of tags. */
2019
allowsRemoving?: boolean,
20+
/** Called when the user removes a tag. */
2121
onRemove?: (key: Key) => void
2222
}
2323

2424
export interface SpectrumTagGroupProps<T> extends TagGroupProps<T>, DOMProps, StyleProps {}
2525

2626
export interface TagProps<T> extends ItemProps<any> {
27-
isDisabled?: boolean,
2827
isFocused: boolean,
2928
allowsRemoving?: boolean,
3029
item: Node<T>,

0 commit comments

Comments
 (0)