@plumeria/core 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,8 +50,13 @@ const styles = css.create({
|
|
|
50
50
|
const className = css.props(styles.text, styles.box);
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
If you only have one style, you can get the class name directly with the $ accessor:
|
|
54
|
+
|
|
55
|
+
```jsx
|
|
56
|
+
<div className={styles.$text} />
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Use `css.props()` to combine multiple styles or switch between them conditionally.
|
|
55
60
|
|
|
56
61
|
```jsx
|
|
57
62
|
<div className={css.props(styles.text, styles.box)} />
|