How davidhdev/react-bits works
React Bits is both a copy-ready React animation/component library and its catalog/documentation site. Visitors browse a category or search, inspect a component’s preview and implementation options, then copy or install a chosen variant; the site also offers Pro discovery and three creative tools. The graph follows the documented routes and sampled imports. Several page and tool implementations were not excerpted, so their internal calls are intentionally not inferred.
Main entry points: App.jsx Route application · pages Component documentation · SearchDialog.jsx Catalog search · ToolsPage.jsx Tools directory
Components 21
Site experience
- Route application
src/App.jsx - Landing page
src/components/landingnew - Site navigation
src/components/landingnew/Navbar/Navbar.jsx - Shared providers
src/components/layout/Providers.jsx
Component catalog
- Category catalog
src/constants/Categories.js - Component metadata
src/constants/Information.js - React components
src/content - Code variants
src/ts-default - Component documentation
src/pages - Install and code
src/components/code - Live customization
src/components/common/Preview - Catalog search
src/components/common/SearchDialog.jsx
Creative tools
- Tools directory
src/pages/ToolsPage.jsx - Background Studio
src/tools/background-studio/BackgroundStudio.jsx - Background choices
src/tools/background-studio/backgrounds/index.js - Shape Magic
src/tools/shape-magic - Texture Lab
src/tools/texture-lab
Pro discovery
- Pro showcase
src/pages/ProPage.jsx - Pro catalog
src/constants/Pro.js - Pro search
src/utils/proSearch.js
Other components
- Developer
Connections 26
- Developer → Route application: opens
- Route application → Shared providers: wraps routes
src/App.jsx - Route application → Landing page: routes to
src/App.jsx - Route application → Component documentation: routes to
src/App.jsx - Route application → Tools directory: routes to
src/App.jsx - Route application → Pro showcase: routes to
src/App.jsx - Route application → Catalog search: mounts dialog
- Site navigation → Category catalog: reads categories
src/components/landingnew/Navbar/Navbar.jsx - Site navigation → Catalog search: opens search
- Category catalog → Component metadata: builds catalog
src/constants/Categories.js - Component documentation → Category catalog: uses category routes
src/App.jsx - Component documentation → React components: presents components
src/pages/ProPage.jsx - Component documentation → Live customization: offers customization
- Component documentation → Install and code: offers installation
README.md - Install and code → Code variants: provides variants
README.md - Catalog search → Category catalog: searches categories
src/components/common/SearchDialog.jsx - Catalog search → Component metadata: searches components
src/components/common/SearchDialog.jsx - Catalog search → Pro search: searches Pro catalog
src/components/common/SearchDialog.jsx - Pro search → Pro catalog: matches Pro entries
- Tools directory → Background Studio: renders tool
src/pages/ToolsPage.jsx - Tools directory → Shape Magic: renders tool
src/pages/ToolsPage.jsx - Tools directory → Texture Lab: renders tool
src/pages/ToolsPage.jsx - Background Studio → Background choices: loads choices
src/tools/background-studio/backgrounds/index.js - Background choices → React components: loads backgrounds
src/tools/background-studio/backgrounds/index.js - Pro showcase → Pro catalog: shows Pro offers
src/pages/ProPage.jsx - Pro showcase → Site navigation: uses site navigation
src/pages/ProPage.jsx