Skip to content

Custom SVGs for Radio & Checkbox components #2013

Open
@MuhammadJamaluddin

Description

Is your feature request related to a problem? Please describe.
I don't think Theme UI should be opinionated on which SVGs should be used for the Radio & CheckBox components

Describe the solution you'd like
Probably an additional prop called customIcon maybe... based on which we could conditionally render the passed SVG icon otherwise we use the default icons?

Describe alternatives you've considered
The alternative is obviously to rebuild the component from the ground up, but it's really counterproductive given that Theme UI have the component & API in place

Additional context
Theme UI should make it seamless to build a design system & enforcing a specific icon without giving the option to override it sounds a bit counterintuitive for me

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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