<img src="https://user-images.githubusercontent.com/7423098/206561178-9ef867a3-b4be-4d96-9c21-069329be15d4.png#gh-light-mode-only" height="80" alt="Swing.xyx" />

<img src="https://user-images.githubusercontent.com/7423098/206564939-6225eb2d-f9cc-4a0a-b55a-4e5ba635c2e6.png#gh-dark-mode-only" height="80" alt="Swing.xyx" />

<br />
<br />

# @swing.xyz/ui

Embedable UI component to enable cross-chain bridging & swaps on any website!

<br />
<br />

<a href="https://galaxy.exchange" target="_blank"><img src="https://user-images.githubusercontent.com/7423098/206560534-c0c5e404-2632-447d-ad43-1075b613e905.png" width="75%" style="max-width: 600px" /></a>

</div>

<br />

## Installation

Install using your favorite package manager.

```bash
yarn add @swing.xyz/ui

# OR

npm i @swing.xyz/ui
```

## Guides

Check out our [developer documentation](https://developers.swing.xyz/reference/widget) for the latest guides and reference docs!

## Usage

### Swaps

```tsx
import { Swap } from '@swing.xyz/ui';

export default function App() {
  return <Swap />;
}
```

### Staking

```tsx
import { Stake } from '@swing.xyz/ui';

export default function App() {
  return <Stake />;
}
```

### Withdrawal

```tsx
import { Withdraw } from '@swing.xyz/ui';

export default function App() {
  return <Withdraw />;
}
```

### Gas Refill

```tsx
import { Gas } from '@swing.xyz/ui';

export default function App() {
  return <Gas />;
}
```
