@kaze-style/swc-plugin
Advanced tools
Comparing version 0.14.3 to 0.15.0
{ | ||
"name": "@kaze-style/swc-plugin", | ||
"version": "0.14.3", | ||
"version": "0.15.0", | ||
"license": "MIT", | ||
@@ -44,4 +44,4 @@ "author": "Taishi Naritomi", | ||
"devDependencies": { | ||
"@kaze-style/core": "^0.14.3" | ||
"@kaze-style/core": "^0.15.0" | ||
} | ||
} |
@@ -44,3 +44,4 @@ <div> | ||
```ts | ||
import { createStyle, createGlobalStyle, mergeStyle } from '@kaze-style/react'; | ||
// App.style.ts | ||
import { createStyle, createGlobalStyle } from '@kaze-style/react'; | ||
@@ -53,3 +54,3 @@ createGlobalStyle({ | ||
const classes = createStyle({ | ||
export const style = createStyle({ | ||
container: { | ||
@@ -66,7 +67,13 @@ margin: '20px', | ||
}); | ||
``` | ||
```ts | ||
// App.tsx | ||
import { mergeStyle } from '@kaze-style/react'; | ||
import { style } from './App.style'; | ||
export const App = ({ action }) => { | ||
return ( | ||
<div className={classes.container}> | ||
<p className={mergeStyle(classes.base, action && classes.action)}></p> | ||
<div className={style.container}> | ||
<p className={mergeStyle(style.base, action && style.action)}></p> | ||
</div> | ||
@@ -73,0 +80,0 @@ ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112
2744979