Skip to content

Refine type of the classes prop#237

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;
};

Activity

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

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