Skip to content

[Tabs] Closable Tabs. #1680

@alitaheri

Description

@alitaheri

It would be great if tabs had a prop like isClosable: boolean and corresponding events:

  • Called when the close icon is clicked before the tab is closed: closing: (value) => boolean or closing: (e:{preventDefault: () => void, value}) => void
  • Called after the tab is closed: closed: (value) => void

The value refers to the value from controlled tabs.
This feature is great for applications that work with documents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: tabsChanges related to the tabs.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions