@odiaui/icons-react 0.0.0-stage → 0.2.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 odiaicons contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,93 @@
1
- # Temporary Holding Version
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/rudranboitei/odia-icons/main/public/construction.svg" alt="odiaicons logo construction sheet" width="100%" />
3
+ </p>
2
4
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
5
+ # @odiaui/icons-react
6
+
7
+ Free, open-source Odisha icons as typed React components. Every icon is drawn
8
+ on a **24 × 24 grid**, uses `currentColor`, and ships as a tree-shakeable named
9
+ export. MIT licensed.
10
+
11
+ - 206 icons, drawn with Odisha in mind
12
+ - React 18+
13
+ - TypeScript types included
14
+ - ESM and CJS builds
15
+ - No runtime dependencies beyond React
16
+
17
+ ## Install
18
+
19
+ ```bash
20
+ npm install @odiaui/icons-react
21
+ ```
22
+
23
+ ```bash
24
+ pnpm add @odiaui/icons-react
25
+ ```
26
+
27
+ ```bash
28
+ yarn add @odiaui/icons-react
29
+ ```
30
+
31
+ ```bash
32
+ bun add @odiaui/icons-react
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ ```tsx
38
+ import { Home } from "@odiaui/icons-react";
39
+
40
+ export function Example() {
41
+ return <Home size={32} className="text-orange-600" />;
42
+ }
43
+ ```
44
+
45
+ Colour comes from `currentColor`, so Tailwind text utilities, CSS `color`, or a
46
+ `color` prop all work:
47
+
48
+ ```tsx
49
+ <Home size={24} color="#ea580c" />
50
+ ```
51
+
52
+ Every component forwards its ref to the underlying `<svg>`:
53
+
54
+ ```tsx
55
+ import { useRef } from "react";
56
+ import { Search } from "@odiaui/icons-react";
57
+
58
+ const ref = useRef<SVGSVGElement>(null);
59
+ <Search ref={ref} size={40} aria-label="Search" />;
60
+ ```
61
+
62
+ ## Props
63
+
64
+ | Prop | Type | Default | Description |
65
+ | ------------- | -------------------------------------- | ------------------------ | ------------------------------------------------------------------ |
66
+ | `size` | `number \| string` | `24` | Width and height of the icon. |
67
+ | `className` | `string` | — | CSS classes applied to the `<svg>`. |
68
+ | `color` | `string` | `currentColor` inherited | Sets the icon colour. The icon strokes use `currentColor`. |
69
+ | `strokeWidth` | `number \| string` | `2` | Stroke width. |
70
+ | `...props` | `React.SVGProps<SVGSVGElement>` | — | Any valid SVG attribute, event handler or accessibility prop. |
71
+
72
+ Component names are the PascalCase form of the SVG filename. For example,
73
+ `home.svg` becomes `Home`:
74
+
75
+ ```tsx
76
+ import { Home } from "@odiaui/icons-react";
77
+ ```
78
+
79
+ Browse the full set at [icons.odiaui.xyz/icons](https://icons.odiaui.xyz/icons).
80
+
81
+ ## Tree-shaking
82
+
83
+ The package is ESM-first, declares `"sideEffects": false`, and exposes one named
84
+ component per icon. Bundlers can remove any icon you do not import.
85
+
86
+ ## Requirements
87
+
88
+ - React 18 or newer
89
+ - Node 18 or newer when building from source
90
+
91
+ ## Licence
92
+
93
+ MIT © odiaicons contributors. See [LICENSE](./LICENSE).