@nousantx/tenoxui-styler
v0.1.19
Published
Quick TenoxUI styler with rich features
Downloads
1,240
Readme
TenoxUI Styler
Usage
React
import { useLayoutEffect } from '@nousantx/tenoxui/styler'
import { init, createConfig } from '@nousantx/tenoxui/styler'
export function App() {
useLayoutEffect(() => {
const config = createConfig({
property: { bg: 'background' }
})
init(config, '*[class]')
}, [])
return <div class="bg-red"></div>
}
HTML / UMD
<script src="https://cdn.jsdelivr.net/npm/@nousantx/[email protected]/dist/index.umd.min.js"></script>
<script>
const config = __nsx_styler.createConfig({
property: { bg: 'background' }
})
__nsx_styler.init(config, '*[class]')
</script>
LICENSE
MIT