@xsolla/xui-icons-flag 0.95.0 → 0.97.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/README.md +50 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# @xsolla/xui-icons-flag
|
|
2
|
+
|
|
3
|
+
Flag icons for countries and territories worldwide, identified by ISO 3166-1 alpha-2 codes.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yarn add @xsolla/xui-icons-flag
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { FlagUS, FlagGB, FlagDE } from '@xsolla/xui-icons-flag';
|
|
15
|
+
|
|
16
|
+
function App() {
|
|
17
|
+
return (
|
|
18
|
+
<>
|
|
19
|
+
<FlagUS width={32} height={24} />
|
|
20
|
+
<FlagGB width={32} height={24} />
|
|
21
|
+
<FlagDE width={32} height={24} />
|
|
22
|
+
</>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Available Icons
|
|
28
|
+
|
|
29
|
+
- `FlagIcon`
|
|
30
|
+
- `FlagAD`
|
|
31
|
+
- `FlagAE`
|
|
32
|
+
- `FlagAF`
|
|
33
|
+
- `FlagAG`
|
|
34
|
+
- `FlagAI`
|
|
35
|
+
- `FlagAL`
|
|
36
|
+
- `FlagAM`
|
|
37
|
+
- `FlagAN`
|
|
38
|
+
- `FlagAO`
|
|
39
|
+
- `FlagAQ`
|
|
40
|
+
- `FlagAR`
|
|
41
|
+
- `FlagAS`
|
|
42
|
+
- `FlagAT`
|
|
43
|
+
- `FlagAU`
|
|
44
|
+
- `FlagAW`
|
|
45
|
+
- `FlagAX`
|
|
46
|
+
- `FlagAZ`
|
|
47
|
+
- `FlagBA`
|
|
48
|
+
- `FlagBB`
|
|
49
|
+
|
|
50
|
+
...and 238 more. See `src/index.ts` for the full list.
|