@odiaui/icons-react 0.0.0-stage → 0.1.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 +21 -0
- package/README.md +88 -2
- package/dist/index.cjs +1039 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +225 -0
- package/dist/index.d.ts +225 -0
- package/dist/index.js +966 -0
- package/dist/index.js.map +1 -0
- package/package.json +63 -4
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,89 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @odiaui/icons-react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Free, open-source Odisha icons as typed React components. Every icon is drawn
|
|
4
|
+
on a **24 × 24 grid**, uses `currentColor`, and ships as a tree-shakeable named
|
|
5
|
+
export. MIT licensed.
|
|
6
|
+
|
|
7
|
+
- 37 hand-drawn motifs: temples, Pattachitra, Odissi, festivals and food
|
|
8
|
+
- React 18+
|
|
9
|
+
- TypeScript types included
|
|
10
|
+
- ESM and CJS builds
|
|
11
|
+
- No runtime dependencies beyond React
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @odiaui/icons-react
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm add @odiaui/icons-react
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
yarn add @odiaui/icons-react
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
bun add @odiaui/icons-react
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
import { Deepa } from "@odiaui/icons-react";
|
|
35
|
+
|
|
36
|
+
export function Example() {
|
|
37
|
+
return <Deepa size={32} className="text-orange-600" />;
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Colour comes from `currentColor`, so Tailwind text utilities, CSS `color`, or a
|
|
42
|
+
`color` prop all work:
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
<Deepa size={24} color="#ea580c" />
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Every component forwards its ref to the underlying `<svg>`:
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
import { useRef } from "react";
|
|
52
|
+
import { Lotus } from "@odiaui/icons-react";
|
|
53
|
+
|
|
54
|
+
const ref = useRef<SVGSVGElement>(null);
|
|
55
|
+
<Lotus ref={ref} size={40} aria-label="Lotus" />;
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Props
|
|
59
|
+
|
|
60
|
+
| Prop | Type | Default | Description |
|
|
61
|
+
| ------------- | -------------------------------------- | ------------------------ | ------------------------------------------------------------------ |
|
|
62
|
+
| `size` | `number \| string` | `24` | Width and height of the icon. |
|
|
63
|
+
| `className` | `string` | — | CSS classes applied to the `<svg>`. |
|
|
64
|
+
| `color` | `string` | `currentColor` inherited | Sets the icon colour. The icon strokes use `currentColor`. |
|
|
65
|
+
| `strokeWidth` | `number \| string` | `1.5` | Stroke width. |
|
|
66
|
+
| `...props` | `React.SVGProps<SVGSVGElement>` | — | Any valid SVG attribute, event handler or accessibility prop. |
|
|
67
|
+
|
|
68
|
+
Component names are the PascalCase form of the SVG filename. For example,
|
|
69
|
+
`olive-ridley-turtle.svg` becomes `OliveRidleyTurtle`:
|
|
70
|
+
|
|
71
|
+
```tsx
|
|
72
|
+
import { OliveRidleyTurtle } from "@odiaui/icons-react";
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Browse the full set at [icons.odiaui.xyz/icons](https://icons.odiaui.xyz/icons).
|
|
76
|
+
|
|
77
|
+
## Tree-shaking
|
|
78
|
+
|
|
79
|
+
The package is ESM-first, declares `"sideEffects": false`, and exposes one named
|
|
80
|
+
component per icon. Bundlers can remove any icon you do not import.
|
|
81
|
+
|
|
82
|
+
## Requirements
|
|
83
|
+
|
|
84
|
+
- React 18 or newer
|
|
85
|
+
- Node 18 or newer when building from source
|
|
86
|
+
|
|
87
|
+
## Licence
|
|
88
|
+
|
|
89
|
+
MIT © odiaicons contributors. See [LICENSE](./LICENSE).
|