UNPKG

@mayank1513/nthul

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) 320 B
import{jsx as c}from"react/jsx-runtime";var f=({children:T,tag:r,theme:s,colorScheme:t,styles:n,className:i,...d})=>{let e=[s?`th-${s}`:"",t!=null?t:"","nth-scoped"];n&&(e=e.map(o=>{var p;return(p=n[o])!=null?p:o})),i&&e.push(i);let a=r!=null?r:"div";return c(a,{...d,className:e.join(" "),children:T})};export{f as a};