Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Label for React Toggle component  #199

@benpolinsky

Description

@benpolinsky

Hi,

It'd be nice to be able to provide an accessible label for the <Toggle/> component, or alternatively, allow the component to be toggled by clicking a <label /> with an htmlFor prop that matches the <Toggle/> name prop.

Could even expose both the toggle button and label as render prop parameters to allow users to rearrange the order of each.

I'd be happy to start a PR if you are open to it.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions