Skip to content

Change label: string to label: ReactNode #3

@Mattis44

Description

@Mattis44

At the moment, the user can only provide a string to the label prop from an Item :

interface ItemProps {
    icon?: React.ReactNode;
    action?: () => void;
    label: string;
    helper?: string;
    isActive?: boolean;
}

It could be better to provide a ReactNode to provide more flexibility :

interface ItemProps {
    icon?: React.ReactNode;
    action?: () => void;
    label: React.ReactNode;
    helper?: string;
    isActive?: boolean;
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions