Skip to content

Accept an action property in the items item object #3

@sindresorhus

Description

@sindresorhus

When all of the select items have different actions, it's annoying having to define values and then do a switch on them in the onSelect handler. Would be nicer to be able to define the actions directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions