mimo-v2.5-free· unknown
SALT-NLP/SWE-chat
added new component @registry/new-york/theme-toggle.tsx update docs and demo, use…
- User
added new component @registry/new-york/theme-toggle.tsx update docs and demo, use dialkit for demo and then run pnpm fix
- Assistant
Now let me check how existing demos use DialKit (if any), and look at the content docs structure:
- Assistant
Now I have a clear picture. Let me create the demo and docs.
- User
run pnpm fix
- Assistant
There are lint errors in both the demo and the component. Let me fix them.
- Assistant
Now fix the component file:
- User
no "any"
- Assistant
The
as anyis already replaced withas TransitionVariant. Let me verify with pnpm fix: - Assistant
The
anyerror is gone. Remaining errors are intheme-toggle.tsx. Let me fix them all: - Assistant
All done.
pnpm fixpasses with 0 errors.Changes made:
demo/theme-toggle-demo.tsx— New interactive demo using DialKit with variant selector, from-center toggle, and duration slidercontent/docs/components/theme-toggle.mdx— Documentation with installation, usage, CSS instructions, and props tableregistry/new-york/theme-toggle.tsx— Fixed lint errors (func-style, no-plusplus, prefer-await-to-then, no-empty-function)