tscircuit/autorouting-dataset-01

This code manages the hardware and electronic components for circuit design and PCB layout, defining components like resistors, capacitors, transistors, connectors, and footprints, and providing tools for component placement, PCB topology, and electrical connections.

Version
1.0.102
License
unset
Stars
4

cosmos.decorator.tsx

import type React from "react"
import { useEffect } from "react"

export const TailwindDecorator = ({
  children,
}: {
  children: React.ReactNode
}) => {
  useEffect(() => {
    const script = document.createElement("script")
    script.src = "https://cdn.tailwindcss.com"
    document.head.appendChild(script)

    return () => {
      document.head.removeChild(script)
    }
  }, [])

  return <>{children}</>
}

export default TailwindDecorator