Skip to content

aktonay/skillz / skills/design/react-bits

react-bits

Verified

Over 215+ animated, interactive, copy-paste React micro-components and effects (text animations, interactive backgrounds, physics cards, custom cursors, blobs, and dock bars).

FileKindSize
README.mdmarkdown11.8 KB
SKILL.mdskill md1.5 KB
package.jsonmanifest3.8 KB
src/App.jsxother3.4 KB
src/assets/common/code-options.webpbinary12.2 KB
src/assets/common/star.svgother775 B
src/assets/demo/cs1.webpbinary659.4 KB
src/assets/demo/cs2.webpbinary632.6 KB
src/assets/demo/cs3.webpbinary628.4 KB
src/assets/holo-card/maushold.webpbinary81.7 KB
src/assets/holo-card/mew.webpbinary94.1 KB
src/assets/holo-card/pikachu.webpbinary48.0 KB
src/assets/icons/antigravity.svgother439 B
src/assets/icons/claude.svgother2.5 KB
src/assets/icons/css.svgother1.8 KB
src/assets/icons/cursor.svgother320 B
src/assets/icons/js.svgother1019 B
src/assets/icons/jsrepo-outline.svgother2.9 KB
src/assets/icons/shadcn-outline.svgother476 B
src/assets/icons/ts.svgother1.8 KB
src/assets/icons/tw.svgother894 B
src/assets/icons/vscode.svgother1.2 KB
src/assets/lanyard/card-back.webpbinary9.4 KB
src/assets/lanyard/card-front.webpbinary145.2 KB
src/assets/lanyard/lanyard.pngbinary7.4 KB
src/assets/logos/apple.svgother655 B
src/assets/logos/openai.svgother1.5 KB
src/assets/logos/react-bits-logo-small-black.svgother3.8 KB
src/assets/logos/react-bits-logo-small.svgother3.9 KB
src/assets/logos/react-bits-logo.svgother12.3 KB
src/assets/logos/react-bits-pro-logo.svgother25.7 KB
src/assets/logos/react-bits-sticker.pngbinary73.6 KB
src/assets/logos/reactbits-gh-black.svgother12.2 KB
src/assets/logos/reactbits-gh-white.svgother12.2 KB
src/assets/logos/tesla.svgother546 B
src/assets/stickers/apple.webpbinary4.1 KB
src/assets/stickers/github.webpbinary8.0 KB
src/assets/stickers/openai.webpbinary11.2 KB
src/assets/stickers/tailwind.webpbinary4.3 KB
src/assets/stickers/vite.webpbinary30.4 KB
src/assets/svg/404.svgother774 B
src/assets/svg/landing-blur.svgother918 B
src/assets/svg/svg-corner.svgother200 B
src/components/code/CliInstallation.jsxother10.0 KB
src/components/code/CodeExample.jsxother6.5 KB
src/components/code/CodeHighlighter.jsxother3.2 KB
src/components/code/CodeOptions.jsxother4.3 KB
src/components/code/CodeSection.jsxother547 B
src/components/code/Dependencies.jsxother1.8 KB
src/components/code/IconSelect.jsxother4.5 KB
src/components/code/ShikiCode.jsxother994 B
src/components/common/AnnouncementBar/AnnouncementBar.cssother2.2 KB
src/components/common/AnnouncementBar/AnnouncementBar.jsxother1.5 KB
src/components/common/AnnouncementBar/index.jsscript45 B
src/components/common/AnnouncementModal/AnnouncementModal.cssother7.8 KB
src/components/common/AnnouncementModal/AnnouncementModal.jsxother7.4 KB
src/components/common/BackToTopButton.jsxother1.9 KB
src/components/common/BootReady.jsxother185 B
src/components/common/ComponentList.jsxother29.2 KB
src/components/common/ComponentPager.jsxother3.1 KB
src/components/common/ContributionSection.jsxother1.4 KB
src/components/common/CopyForAIMenu.jsxother3.0 KB
src/components/common/DocsOverview.jsxother1.2 KB
src/components/common/FluidMenuContent.jsxother3.8 KB
src/components/common/GitHub/ContributionSection.jsxother1.4 KB
src/components/common/Misc/Announcement.jsxother4.0 KB
src/components/common/Misc/SearchDialog.jsxother10.8 KB
src/components/common/Misc/SkeletonLoader.jsxother2.0 KB
src/components/common/NotFound/CategoryGallery.jsxother838 B
src/components/common/NotFound/FloatingShards.jsxother5.8 KB
src/components/common/NotFound/categoryPreviews.jsscript975 B
src/components/common/NotFound/galleryCanvas.jsscript13.1 KB
src/components/common/NotFound/glassGeometry.jsscript1.8 KB
src/components/common/NotFound/glassScene.jsscript19.1 KB
src/components/common/NotFound/shardGeometry.jsscript6.1 KB
src/components/common/NotFound/shardIntro.jsscript1.1 KB
src/components/common/NotFound/shardMotion.jsscript3.6 KB
src/components/common/Preview/BackgroundContent.cssother17.2 KB
src/components/common/Preview/BackgroundContent.jsxother7.3 KB
src/components/common/Preview/Customize.jsxother1.3 KB
src/components/common/Preview/CustomizeContext.jsscript134 B
src/components/common/Preview/OpenInStudioButton.jsxother75 B
src/components/common/Preview/PreviewColorList.jsxother1.9 KB
src/components/common/Preview/PreviewColorPicker.jsxother1.0 KB
src/components/common/Preview/PreviewColorPickerCustom.jsxother20.9 KB
src/components/common/Preview/PreviewInput.jsxother771 B
src/components/common/Preview/PreviewResizer.jsxother4.1 KB
src/components/common/Preview/PreviewSelect.jsxother4.1 KB
src/components/common/Preview/PreviewSlider.jsxother4.0 KB
src/components/common/Preview/PreviewSliderVertical.jsxother4.0 KB
src/components/common/Preview/PreviewStageContext.jsscript126 B
src/components/common/Preview/PreviewSwitch.jsxother999 B
src/components/common/Preview/PropTable.cssother4.6 KB
src/components/common/Preview/PropTable.jsxother2.4 KB
src/components/common/Preview/RefreshButton.jsxother709 B
src/components/common/Preview/ResetPropsButton.jsxother1.9 KB
src/components/common/Preview/colorMath.jsscript5.1 KB
src/components/common/Preview/demoModes.jsscript670 B
src/components/common/Preview/studio-url.jsscript720 B
src/components/common/Pro/CategoryProFooter.jsxother1.6 KB
src/components/common/Pro/ProComparison.cssother6.2 KB
src/components/common/Pro/ProComparison.jsxother5.6 KB
src/components/common/Pro/ProCta.jsxother1.8 KB
src/components/common/Pro/ProMedia.jsxother2.1 KB
src/components/common/Pro/ProPillars.jsxother1.9 KB
src/components/common/Pro/ProShowcase.jsxother4.7 KB
src/components/common/ProCard.jsxother2.3 KB
src/components/common/ProCardMobile.cssother2.9 KB
src/components/common/ProCardMobile.jsxother2.2 KB
src/components/common/SVGComponents.jsxother13.9 KB
src/components/common/SearchDialog.cssother7.5 KB
src/components/common/SearchDialog.jsxother12.7 KB
src/components/common/SimpleMarquee.jsxother6.0 KB
src/components/common/SkeletonLoader.jsxother2.9 KB
src/components/common/SponsorsCard.jsxother2.8 KB
src/components/common/SponsorsCircle.jsxother7.7 KB
src/components/common/TabsFooter.jsxother566 B
src/components/common/TabsLayout.jsxother20.1 KB
src/components/context/ActiveRouteContext/ActiveRouteContext.jsxother542 B
src/components/context/ComponentPropsContext.jsxother1.3 KB
src/components/context/InstallationContext/InstallationContext.jsxother1.1 KB
src/components/context/OptionsContext/OptionsContext.jsxother1.4 KB
src/components/context/OptionsContext/useOptions.jsscript158 B
src/components/context/SearchContext/SearchContext.jsxother1.3 KB
src/components/context/SearchContext/useSearch.jsscript154 B
src/components/context/TransitionContext/TransitionContext.jsxother2.0 KB
src/components/landingnew/CTA/CTA.cssother4.1 KB
src/components/landingnew/CTA/CTA.jsxother2.2 KB
src/components/landingnew/FAQ/FAQ.cssother1.3 KB
src/components/landingnew/FAQ/FAQ.jsxother5.9 KB
src/components/landingnew/Features/Features.cssother20.0 KB
src/components/landingnew/Features/Features.jsxother19.9 KB
src/components/landingnew/Footer/Footer.cssother4.8 KB
src/components/landingnew/Footer/Footer.jsxother3.1 KB
src/components/landingnew/Footer/FooterWaves.jsxother7.4 KB
src/components/landingnew/Hero/DotField.jsxother10.9 KB
src/components/landingnew/Hero/Hero.jsxother26.5 KB
src/components/landingnew/Hero/HeroBand.jsxother8.9 KB
src/components/landingnew/Hero/HeroChip.jsxother2.3 KB
src/components/landingnew/Hero/HeroFrame.cssother21.2 KB
src/components/landingnew/HowItWorks/HowItWorks.cssother5.3 KB
src/components/landingnew/HowItWorks/HowItWorks.jsxother4.6 KB
src/components/landingnew/LandingLoader/LandingLoader.cssother1.8 KB
src/components/landingnew/LandingLoader/LandingLoader.jsxother4.3 KB
src/components/landingnew/LiveDemo/LiveDemo.cssother3.7 KB
src/components/landingnew/LiveDemo/LiveDemo.jsxother4.6 KB
src/components/landingnew/Navbar/Navbar.cssother21.6 KB
src/components/landingnew/Navbar/Navbar.jsxother19.4 KB
src/components/landingnew/ProSpotlight/ProSpotlight.cssother2.4 KB
src/components/landingnew/ProSpotlight/ProSpotlight.jsxother1.5 KB
src/components/landingnew/Sponsors/Sponsors.cssother5.2 KB
src/components/landingnew/Sponsors/Sponsors.jsxother3.2 KB
src/components/landingnew/Testimonials/Testimonials.cssother5.5 KB
src/components/landingnew/Testimonials/Testimonials.jsxother4.8 KB
src/components/landingnew/Tools/SoundPreview.jsxother1012 B
src/components/landingnew/Tools/Tools.cssother4.3 KB
src/components/landingnew/Tools/Tools.jsxother4.2 KB
src/components/layout/Providers.jsxother667 B
src/components/layout/SidebarLayout.jsxother793 B
src/components/navs/Header.jsxother15.9 KB
src/components/navs/Sidebar.jsxother34.4 KB
src/components/setup/ChakraScope.jsxother433 B
src/components/setup/color-mode.jsxother2.1 KB
src/components/setup/provider.jsxother145 B
src/components/setup/toaster.jsxother1.0 KB
src/components/setup/tooltip.jsxother897 B
src/constants/Badges.jsscript1.4 KB
src/constants/Categories.jsscript5.0 KB
src/constants/Components.jsscript15.1 KB
src/constants/Information.jsscript114.4 KB
src/constants/Pro.jsscript11.4 KB
src/constants/Showcase.jsscript806 B
src/constants/Site.jsscript346 B
src/constants/Sponsors.jsscript1.2 KB
src/constants/Tools.jsscript2.1 KB
src/constants/backgroundThemeProps.jsscript4.8 KB
src/constants/code/Animations/animatedContentCode.jsscript737 B
src/constants/code/Animations/blobCursorCode.jsscript653 B
src/constants/code/Animations/clickSparkCode.jsscript588 B
src/constants/code/Animations/crosshairCode.jsscript880 B
src/constants/code/Animations/crystalizedBallCode.jsscript822 B
src/constants/code/Animations/cubesCode.jsscript738 B
src/constants/code/Animations/cursorGridCode.jsscript866 B
src/constants/code/Animations/ditherVeilCode.jsscript870 B
src/constants/code/Animations/elasticMeshCode.jsscript896 B
src/constants/code/Animations/electricBorderCode.jsscript790 B
src/constants/code/Animations/electricLogoCode.jsscript825 B
src/constants/code/Animations/fadeContentCode.jsscript649 B
src/constants/code/Animations/ghostCursorCode.jsscript755 B
src/constants/code/Animations/glareHoverCode.jsscript879 B
src/constants/code/Animations/glowCursorCode.jsscript768 B
src/constants/code/Animations/gradualblurCode.jsscript924 B
src/constants/code/Animations/halftoneRevealCode.jsscript895 B
src/constants/code/Animations/imageTrailCode.jsscript1.1 KB
src/constants/code/Animations/laserFlowCode.jsscript1.3 KB
src/constants/code/Animations/logoLoopCode.jsscript1.8 KB
src/constants/code/Animations/magnetCode.jsscript479 B
src/constants/code/Animations/metaBallsCode.jsscript822 B
src/constants/code/Animations/metallicPaintCode.jsscript779 B
src/constants/code/Animations/noiseCode.jsscript794 B

src/components/common/SearchDialog.jsx

View on GitHub
import { useEffect, useLayoutEffect, useState, useRef, useCallback, useMemo } from 'react';
import { HugeiconsIcon } from '@hugeicons/react';
import {
  ArrowTurnBackwardIcon,
  ArrowUpRight01Icon,
  File01Icon,
  Image01Icon,
  Layers01Icon,
  Motion01Icon,
  MousePointerClickIcon,
  PuzzleIcon,
  Search01Icon,
  TextFontIcon
} from '@hugeicons/core-free-icons';
import { useNavigate } from 'react-router-dom';
import { CATEGORIES } from '../../constants/Categories';
import { componentMetadata } from '../../constants/Information';
import { getComponentMatchLabel, rankComponentSearch } from '../../utils/componentSearch';
import { searchPro } from '../../utils/proSearch';
import { proUrl, trackProClick } from '../../utils/pro';
import { useProManifest } from '../../hooks/useProManifest';
import './SearchDialog.css';

const PRO_PLACEMENT = 'search';
const FREE_ONLY_KEY = 'reactbits:search-free-only';

/** Persisted so someone who opts out of Pro results only has to say so once. */
const readFreeOnly = () => {
  try {
    return window.localStorage.getItem(FREE_ONLY_KEY) === 'true';
  } catch {
    return false;
  }
};

const metadataByPath = new Map(
  Object.values(componentMetadata).map(metadata => [new URL(metadata.docsUrl).pathname, metadata])
);

const slug = value => value.replace(/\s+/g, '-').toLowerCase();

function searchComponents(query) {
  if (!query || query.trim() === '') return [];
  const results = [];
  CATEGORIES.forEach(category => {
    const { name: categoryName, subcategories } = category;
    if (categoryName === 'Get Started') return;

    subcategories.forEach(componentName => {
      const path = `/${slug(categoryName)}/${slug(componentName)}`;
      const metadata = metadataByPath.get(path);
      const match = rankComponentSearch(
        {
          title: componentName,
          categoryLabel: categoryName,
          description: metadata?.description,
          tags: metadata?.tags
        },
        query
      );

      if (match) {
        results.push({
          categoryName,
          componentName,
          matchLabel: getComponentMatchLabel(categoryName, match.type),
          score: match.score
        });
      }
    });
  });
  return results.sort((a, b) => b.score - a.score || a.componentName.localeCompare(b.componentName)).slice(0, 8);
}

const categoryIconMapping = {
  'Get Started': File01Icon,
  'Text Animations': TextFontIcon,
  Animations: Motion01Icon,
  Components: PuzzleIcon,
  Micro: MousePointerClickIcon,
  Backgrounds: Image01Icon
};

const Glyph = ({ icon, size = 16 }) => <HugeiconsIcon icon={icon} size={size} strokeWidth={1.6} aria-hidden="true" />;

const ResultRow = ({ index, selected, icon, title, badge, meta, trail, onHover, onSelect }) => (
  <div
    className="search-row"
    data-index={index}
    data-selected={selected ? '' : undefined}
    role="option"
    aria-selected={selected}
    onMouseMove={onHover}
    onClick={onSelect}
  >
    <span className="search-row-icon">
      <Glyph icon={icon} />
    </span>
    <span className="search-row-text">
      <span className="search-row-title">
        {title}
        {badge && <span className="search-row-badge">{badge}</span>}
      </span>
      <span className="search-row-meta">{meta}</span>
    </span>
    <span className="search-row-trail">
      <Glyph icon={trail} />
    </span>
  </div>
);

const SearchDialog = ({ isOpen, onClose }) => {
  const [inputValue, setInputValue] = useState('');
  const [searchValue, setSearchValue] = useState('');
  const [topGradientOpacity, setTopGradientOpacity] = useState(0);
  const [bottomGradientOpacity, setBottomGradientOpacity] = useState(1);
  const [selectedIndex, setSelectedIndex] = useState(-1);
  const [keyboardNav, setKeyboardNav] = useState(false);
  const [freeOnly, setFreeOnly] = useState(readFreeOnly);
  const resultsRef = useRef(null);
  const inputRef = useRef(null);
  const [highlight, setHighlight] = useState(null);
  const navigate = useNavigate();

  // Only fetched once the dialog has been opened, and cached from then on.
  const { manifest } = useProManifest({ enabled: isOpen && !freeOnly });

  useEffect(() => {
    const t = setTimeout(() => {
      setSearchValue(inputValue);
      setSelectedIndex(-1);
    }, 180);
    return () => clearTimeout(t);
  }, [inputValue]);

  const freeResults = useMemo(() => searchComponents(searchValue), [searchValue]);

  const proResults = useMemo(
    () => (freeOnly ? [] : searchPro(manifest, searchValue)),
    [freeOnly, manifest, searchValue]
  );

  // One flat list so arrow keys and Enter run across both groups.
  const results = useMemo(
    () => [...freeResults.map(item => ({ kind: 'free', item })), ...proResults.map(item => ({ kind: 'pro', item }))],
    [freeResults, proResults]
  );

  const toggleFreeOnly = () => {
    setFreeOnly(prev => {
      const next = !prev;
      try {
        window.localStorage.setItem(FREE_ONLY_KEY, String(next));
      } catch {
        /* storage unavailable, the preference just won't persist */
      }
      return next;
    });
    setSelectedIndex(-1);
  };

  const handleScroll = e => {
    const { scrollTop, scrollHeight, clientHeight } = e.target;
    setTopGradientOpacity(Math.min(scrollTop / 50, 1));
    const bottomDist = scrollHeight - (scrollTop + clientHeight);
    setBottomGradientOpacity(scrollHeight <= clientHeight ? 0 : Math.min(bottomDist / 50, 1));
  };

  useEffect(() => {
    if (!resultsRef.current) return;
    const { scrollTop, scrollHeight, clientHeight } = resultsRef.current;
    setBottomGradientOpacity(
      scrollHeight <= clientHeight ? 0 : Math.min((scrollHeight - (scrollTop + clientHeight)) / 50, 1)
    );
  }, [results]);

  const handleSelect = useCallback(
    result => {
      if (!result) return;

      if (result.kind === 'pro') {
        const { item } = result;
        trackProClick(PRO_PLACEMENT, { section: item.section, item: item.name });
        window.open(proUrl(item.href, PRO_PLACEMENT), '_blank', 'noopener,noreferrer');
      } else {
        const slug = str => str.replace(/\s+/g, '-').toLowerCase();
        navigate(`/${slug(result.item.categoryName)}/${slug(result.item.componentName)}`);
      }

      setInputValue('');
      setSearchValue('');
      setSelectedIndex(-1);
      onClose();
    },
    [navigate, onClose]
  );

  useEffect(() => {
    const onKey = e => {
      if (!searchValue) return;
      if (e.key === 'ArrowDown' || (e.key === 'Tab' && !e.shiftKey)) {
        e.preventDefault();
        setKeyboardNav(true);
        setSelectedIndex(p => Math.min(p + 1, results.length - 1));
      } else if (e.key === 'ArrowUp' || (e.key === 'Tab' && e.shiftKey)) {
        e.preventDefault();
        setKeyboardNav(true);
        setSelectedIndex(p => Math.max(p - 1, 0));
      } else if (e.key === 'Enter' && selectedIndex >= 0) {
        e.preventDefault();
        handleSelect(results[selectedIndex]);
      }
    };
    window.addEventListener('keydown', onKey);
    return () => window.removeEventListener('keydown', onKey);
  }, [results, searchValue, selectedIndex, handleSelect]);

  useLayoutEffect(() => {
    const row = selectedIndex >= 0 ? resultsRef.current?.querySelector(`[data-index="${selectedIndex}"]`) : null;
    setHighlight(previous => {
      if (!row) return previous ? { ...previous, visible: false } : null;
      return { y: row.offsetTop, height: row.offsetHeight, visible: true, ready: Boolean(previous) };
    });
  }, [selectedIndex, results]);

  useEffect(() => {
    if (!keyboardNav || selectedIndex < 0 || !resultsRef.current) return;
    const container = resultsRef.current;
    const item = container.querySelector(`[data-index="${selectedIndex}"]`);
    if (!item) return;

    const margin = 50;
    const itemTop = item.offsetTop;
    const itemBottom = itemTop + item.offsetHeight;
    if (itemTop < container.scrollTop + margin) {
      container.scrollTo({ top: itemTop - margin, behavior: 'smooth' });
    } else if (itemBottom > container.scrollTop + container.clientHeight - margin) {
      container.scrollTo({
        top: itemBottom - container.clientHeight + margin,
        behavior: 'smooth'
      });
    }
    setKeyboardNav(false);
  }, [selectedIndex, keyboardNav]);

  useEffect(() => {
    if (isOpen) {
      setTimeout(() => inputRef.current?.focus(), 50);
    } else {
      setInputValue('');
      setSearchValue('');
      setSelectedIndex(-1);
      setTopGradientOpacity(0);
      setBottomGradientOpacity(1);
    }
  }, [isOpen]);

  if (!isOpen) return null;

  return (
    <div className="search-backdrop" onClick={onClose}>
      <div className="search-dialog" role="dialog" aria-label="Search" onClick={e => e.stopPropagation()}>
        <div className="search-input-row">
          <span className="search-input-icon">
            <Glyph icon={Search01Icon} size={18} />
          </span>
          <input
            ref={inputRef}
            className="search-input"
            value={inputValue}
            onChange={e => setInputValue(e.target.value)}
            placeholder="Search components, categories, or keywords..."
            aria-label="Search"
          />
          <kbd className="search-kbd" onClick={onClose}>
            esc
          </kbd>
        </div>

        {searchValue && (
          <div className="search-results-wrapper">
            <div ref={resultsRef} className="search-results" role="listbox" onScroll={handleScroll}>
              {results.length > 0 ? (
                <>
                  <span
                    className="search-highlight"
                    aria-hidden="true"
                    data-ready={highlight?.ready ? '' : undefined}
                    style={
                      highlight
                        ? {
                            height: highlight.height,
                            transform: `translateY(${highlight.y}px)`,
                            opacity: highlight.visible ? 1 : 0
                          }
                        : { opacity: 0 }
                    }
                  />

                  {freeResults.length > 0 && <div className="search-group-label">React Bits</div>}

                  {freeResults.map((r, i) => (
                    <ResultRow
                      key={`free-${r.categoryName}-${r.componentName}-${i}`}
                      index={i}
                      selected={i === selectedIndex}
                      icon={categoryIconMapping[r.categoryName] || Search01Icon}
                      title={r.componentName}
                      meta={r.matchLabel}
                      trail={ArrowTurnBackwardIcon}
                      onHover={() => i !== selectedIndex && setSelectedIndex(i)}
                      onSelect={() => handleSelect(results[i])}
                    />
                  ))}

                  {proResults.length > 0 && (
                    <div className="search-group-label">
                      React Bits Pro
                      <span>opens pro.reactbits.dev</span>
                    </div>
                  )}

                  {proResults.map((r, i) => {
                    const index = freeResults.length + i;
                    return (
                      <ResultRow
                        key={r.id}
                        index={index}
                        selected={index === selectedIndex}
                        icon={Layers01Icon}
                        title={r.name}
                        badge={r.isFree ? 'Free' : null}
                        meta={r.context}
                        trail={ArrowUpRight01Icon}
                        onHover={() => index !== selectedIndex && setSelectedIndex(index)}
                        onSelect={() => handleSelect(results[index])}
                      />
                    );
                  })}
                </>
              ) : (
                <p className="search-no-results">
                  No results for <strong>{searchValue}</strong>
                </p>
              )}
            </div>

            <div className="search-gradient search-gradient-top" style={{ opacity: topGradientOpacity }} />
            <div className="search-gradient search-gradient-bottom" style={{ opacity: bottomGradientOpacity }} />
          </div>
        )}

        <div className="search-footer">
          <div className="search-hints" aria-hidden="true">
            <span>
              <kbd>↑</kbd>
              <kbd>↓</kbd>
              Navigate
            </span>
            <span>
              <kbd>↵</kbd>
              Open
            </span>
          </div>
          <label className="search-toggle">
            Free only
            <input type="checkbox" role="switch" checked={freeOnly} onChange={toggleFreeOnly} />
            <span className="search-switch" aria-hidden="true" />
          </label>
        </div>
      </div>
    </div>
  );
};

export default SearchDialog;
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 319kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 196kUpdated Claude CodeCodexVerifiedInstall