@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.
Files changed (2) hide show
  1. package/README.md +7 -2
  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
- Use `css.props()` to convert a style object into a string with a hashed key.
54
- You can use them like this:
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)} />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Zero-runtime, expressive CSS-in-JS library for TypeScript.",
5
5
  "keywords": [
6
6
  "css",