Skip to content

Custom thumb for Switch component #5443

@ajhurliman

Description

@ajhurliman

Description

I'd like the ability to specify a custom thumb for the Switch component. Specifically, when the switch's value is isChecked={true} I'd like a checkmark icon to appear over the thumb. Would this be very difficult?

Screen Shot 2022-10-04 at 1 48 01 PM

Problem Statement

To allow users to further customize the Switch component

Proposed Solution or API

Could add a prop customThumb={<div>...</div>}

Alternatives

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions