trinil-react 1.2.0 → 1.3.0

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 (5) hide show
  1. package/ICONS.md +333 -43
  2. package/README.md +5 -4
  3. package/dist/index.d.ts +4425 -760
  4. package/dist/index.js +6799 -3899
  5. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # trinil-react
2
2
 
3
- React 16.8+ icon components. Tree-shakeable, zero dependencies, 765 outline icons with locked stroke styles.
3
+ React 16.8+ icon components. Tree-shakeable, zero dependencies, 1055 outline icons.
4
4
 
5
5
  ## Installation
6
6
 
@@ -17,7 +17,7 @@ export function App() {
17
17
  return (
18
18
  <div>
19
19
  <ArrowDown size={24} />
20
- <Check size={32} color="green" />
20
+ <Check size={32} color="green" strokeWidth={2} />
21
21
  <UsersSearch ariaLabel="Search users" />
22
22
  </div>
23
23
  );
@@ -30,6 +30,7 @@ export function App() {
30
30
  |------|------|---------|-------------|
31
31
  | `size` | `number` | `24` | Width/height in pixels |
32
32
  | `color` | `string` | `"currentColor"` | Stroke color (inherits from CSS) |
33
+ | `strokeWidth` | `number` | `1.5` | Stroke thickness (1-2 recommended) |
33
34
  | `className` | `string` | — | CSS classes |
34
35
  | `title` | `string` | — | SVG `<title>` (accessibility) |
35
36
  | `ariaLabel` | `string` | — | `aria-label` attribute |
@@ -47,7 +48,7 @@ Inherit color from CSS:
47
48
  Or set directly:
48
49
 
49
50
  ```tsx
50
- <ArrowDown color="#ff5733" size={40} className="my-icon" />
51
+ <ArrowDown color="#ff5733" size={40} strokeWidth={2} className="my-icon" />
51
52
  ```
52
53
 
53
54
  ## Accessibility
@@ -62,7 +63,7 @@ Add `ariaLabel` or `title` for standalone icons:
62
63
 
63
64
  ## Note
64
65
 
65
- Stroke properties (`stroke-width`, `stroke-linecap`, `stroke-linejoin`) are **locked** to ensure visual consistency. Only `size`, `color`, `className`, `title`, and `ariaLabel` are customizable.
66
+ `stroke-linecap` and `stroke-linejoin` are locked to `round` for visual consistency.
66
67
 
67
68
  ## License
68
69