Skip to content

Refine type of the classes propΒ #237

@ktaletski

Description

@ktaletski

πŸš€ Feature request

Problem description

Looks like type for the classes prop is too strict. Users should either provide classes for all elements or for none.

classes?: {
    root: string;
    trail: string;
    path: string;
    text: string;
    background: string;
};

Suggested solution

I'd suggest to make all entries optional as from the code they seem to actually be that way.

classes?: {
    root?: string;
    trail?: string;
    path?: string;
    text?: string;
    background?: string;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions