Skip to content

Update TreeView.features.stories.tsx to no longer use styled-components #6505

@hectahertz

Description

@hectahertz

As we move away from styled-components, we would like to remove references and usage of the library in our storybook stories.

This issue tracks updating packages/react/src/TreeView/TreeView.features.stories.tsx to no longer use styled-components.

Copilot instructions

A story uses styled-components either directly or through other components or props. Make sure to migrate the story appropriate in the following situations:

  • If using styled directly in a story, migrate it to a custom components without styled
  • If using Box or BoxWithFallback, migrate to a custom component
  • If using the sx prop, migrate to a class name

The project uses CSS Modules. For styles specific to a story, make a CSS Module next to the story and import the classes for custom components or styles from there.

It's important that you make no changes to the source files of components. All changes must be in the storybook stories.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions