react18-themes
Version:
Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.
2 lines (1 loc) • 396 B
JavaScript
import{a as t}from"./chunk-XEGANJI3.mjs";var o={"color-switch":"react18-themes--color-switch",swing:"react18-themes--swing"};import{jsx as m}from"react/jsx-runtime";var g=({size:e=25,skipSystem:r,targetSelector:s,className:c,...i})=>{let{toggleColorScheme:l}=t(s),n=[o["color-switch"],c].join(" ");return m("button",{className:n,onClick:()=>l(r),style:{"--size":`${e}px`},...i})};export{g as a};