magick-icons 0.1.254 → 0.1.256
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/index.d.mts +19962 -36
- package/index.d.ts +19962 -36
- package/index.js +16764 -48
- package/index.js.map +1 -1
- package/index.mjs +15660 -51
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/README.md +0 -116
package/package.json
CHANGED
package/README.md
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
# Magick Icons
|
|
2
|
-
|
|
3
|
-
SVG React icon components with TypeScript support.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install magick-icons
|
|
9
|
-
# or
|
|
10
|
-
pnpm add magick-icons
|
|
11
|
-
# or
|
|
12
|
-
yarn add magick-icons
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```tsx
|
|
18
|
-
import { ChatFullScreen, Finance } from 'magick-icons';
|
|
19
|
-
|
|
20
|
-
function App() {
|
|
21
|
-
return (
|
|
22
|
-
<div>
|
|
23
|
-
<ChatFullScreen size={24} className="text-blue-500" />
|
|
24
|
-
<Finance size={32} color="red" />
|
|
25
|
-
</div>
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Available Icons
|
|
31
|
-
|
|
32
|
-
- `ChatFullScreen`
|
|
33
|
-
- `Finance`
|
|
34
|
-
|
|
35
|
-
## Props
|
|
36
|
-
|
|
37
|
-
All icons accept standard SVG props plus:
|
|
38
|
-
|
|
39
|
-
```tsx
|
|
40
|
-
interface IconProps extends React.SVGProps<SVGSVGElement> {
|
|
41
|
-
size?: number | string; // Default: 24
|
|
42
|
-
}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Examples
|
|
46
|
-
|
|
47
|
-
### Basic Usage
|
|
48
|
-
```tsx
|
|
49
|
-
<ChatFullScreen />
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Custom Size
|
|
53
|
-
```tsx
|
|
54
|
-
<ChatFullScreen size={48} />
|
|
55
|
-
<ChatFullScreen size="2rem" />
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Custom Styling
|
|
59
|
-
```tsx
|
|
60
|
-
<ChatFullScreen
|
|
61
|
-
className="text-blue-500 hover:text-blue-700"
|
|
62
|
-
style={{ cursor: 'pointer' }}
|
|
63
|
-
/>
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### With Props
|
|
67
|
-
```tsx
|
|
68
|
-
<Finance
|
|
69
|
-
size={32}
|
|
70
|
-
color="currentColor"
|
|
71
|
-
onClick={() => console.log('clicked')}
|
|
72
|
-
aria-label="Finance icon"
|
|
73
|
-
/>
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## TypeScript
|
|
77
|
-
|
|
78
|
-
Full TypeScript support with prop types:
|
|
79
|
-
|
|
80
|
-
```tsx
|
|
81
|
-
import { ChatFullScreen, ChatFullScreenProps } from 'magick-icons';
|
|
82
|
-
|
|
83
|
-
const props: ChatFullScreenProps = {
|
|
84
|
-
size: 24,
|
|
85
|
-
className: "icon",
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
<ChatFullScreen {...props} />
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## IDE Autocomplete
|
|
92
|
-
|
|
93
|
-
### VS Code
|
|
94
|
-
Enable auto-imports in settings:
|
|
95
|
-
- `typescript.suggest.autoImports`: true
|
|
96
|
-
- `javascript.suggest.autoImports`: true
|
|
97
|
-
|
|
98
|
-
Then type `<ChatFullScreen` and accept the suggestion to auto-import.
|
|
99
|
-
|
|
100
|
-
### Manual Import
|
|
101
|
-
Type the import first for autocomplete:
|
|
102
|
-
```tsx
|
|
103
|
-
import { ChatFullScreen } from 'magick-icons';
|
|
104
|
-
// Now typing <Chat will autocomplete
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
## Updating
|
|
108
|
-
|
|
109
|
-
To get the latest icons:
|
|
110
|
-
```bash
|
|
111
|
-
pnpm add magick-icons@latest
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
## License
|
|
115
|
-
|
|
116
|
-
MIT
|