Skip to content

Commit 9cefca4

Browse files
authored
docs: add swizzle delete tip (#10759)
1 parent 91c0b5b commit 9cefca4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

website/docs/swizzling.mdx

+6
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ npm run swizzle -- --list
9494

9595
Use `--help` to see all available CLI options, or refer to the reference [swizzle CLI documentation](./cli.mdx#docusaurus-swizzle).
9696

97+
:::tip Removing Unneeded Swizzled Components
98+
99+
If you decide that a previously swizzled component is no longer necessary, you can simply remove its file(s) from the `src/theme` directory. After removing the component, make sure to restart your development server to ensure the changes are properly reflected.
100+
101+
:::
102+
97103
:::note
98104

99105
After swizzling a component, **restart your dev server** in order for Docusaurus to know about the new component.

0 commit comments

Comments
 (0)