Skip to content

[MultiSwitch]: Add Icon prop to MultiSwitch component items #767

@AlexSKuznetsov

Description

@AlexSKuznetsov

Description

Sometimes we need to have a MultiSwitch button not with the Caption text, but just with the icons. (UUI3 Loveship)
& provide cx for styling

Screenshot 2022-10-13 at 11 39 14

Describe the solution you'd like

import IconOne from '.../assets';
import IconTwo from '.../assets';


<MultiSwitch
    onValueChange={(newValue) => { ... }}
    items={[{"id":1,"icon": IconOne},{"id":2,"icon": IconTwo}]}
    value={1}
    cx={someClass}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions