|
1
|
<p align="center"> |
|
2
|
<a href="https://www.medusajs.com"> |
|
3
|
<picture> |
|
4
|
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/59018053/229103275-b5e482bb-4601-46e6-8142-244f531cebdb.svg"> |
|
5
|
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg"> |
|
6
|
<img alt="Medusa logo" src="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg"> |
|
7
|
</picture> |
|
8
|
</a> |
|
9
|
</p> |
|
10
|
<h1 align="center"> |
|
11
|
Medusa UI |
|
12
|
</h1> |
|
13
|
|
|
14
|
<h4 align="center"> |
|
15
|
<a href="https://docs.medusajs.com/ui">Documentation</a> | |
|
16
|
<a href="https://www.medusajs.com">Website</a> |
|
17
|
</h4> |
|
18
|
|
|
19
|
<p align="center"> |
|
20
|
Medusa's admin component library. |
|
21
|
</p> |
|
22
|
<p align="center"> |
|
23
|
<a href="https://github.com/medusajs/medusa/blob/develop/LICENSE"> |
|
24
|
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="Medusa is released under the MIT license." /> |
|
25
|
</a> |
|
26
|
<a href="https://discord.gg/xpCwq3Kfn8"> |
|
27
|
<img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg" alt="Discord Chat" /> |
|
28
|
</a> |
|
29
|
<a href="https://twitter.com/intent/follow?screen_name=medusajs"> |
|
30
|
<img src="https://img.shields.io/twitter/follow/medusajs.svg?label=Follow%20@medusajs" alt="Follow @medusajs" /> |
|
31
|
</a> |
|
32
|
</p> |
|
33
|
|
|
34
|
## Getting Started |
|
35
|
|
|
36
|
### Installation |
|
37
|
|
|
38
|
```sh |
|
39
|
yarn add @medusajs/ui |
|
40
|
``` |
|
41
|
|
|
42
|
### Usage |
|
43
|
|
|
44
|
```jsx |
|
45
|
import { Button } from "@medusajs/ui" |
|
46
|
|
|
47
|
const App = () => <Button variant="primary">Hello World</Button> |
|
48
|
``` |
|
49
|
|
|
50
|
## Documentation |
|
51
|
|
|
52
|
You can find the documentation for Medusa UI [on the documentation site](https://docs.medusajs.com/ui). |