UNPKG

next-yak

Version:

next-yak is a CSS-in-JS solution tailored for Next.js that seamlessly combines the expressive power of styled-components syntax with efficient build-time extraction of CSS using Next.js's built-in CSS configuration

9 lines (7 loc) 254 B
import React from "react"; import { styled as StyledFactory } from "../styled.js"; export const styled = new Proxy(StyledFactory, { get(target, TagName: keyof React.JSX.IntrinsicElements) { return target(TagName); }, }) as typeof StyledFactory;