Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Smart Knobs doesn't work with custom decorators #47

Closed

Description

@3elementsdesign

I have a decorator like this...

export const myDecorator = storyFn => { return <Card>{storyFn()}</Card>; };

The <Card> seems to break it. This is from Material UI. It doesn't seem to be Material UI though being the issue, since even just adding a simple <div> wrapper breaks it too. Smart knobs works fine on components without any custom decorators. Once I add it, no props show up in the Knobs panel.

.addDecorator(myDecorator)

Any idea why? Thanks.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions