# Component gallery

> Every component bitidocs supports.

## Callouts

> **Note**
>
> A note: extra context, in blue.

> **Info**
>
> Some info, in neutral gray. It can contain [links](/guides/get-started/quickstart) and `code`.

> **Warning**
>
> A warning: something to watch out for.

> **Success**
>
> Success: the operation completed.

> **Tip**
>
> A tip: a helpful suggestion.

> **Check**
>
> Done! Everything is checked.

> **Error**
>
> Something failed.

> **Danger**
>
> Danger (Mintlify) renders like an error.

> **Launch**
>
> Launch: a new feature just shipped.

> **Back up first**
>
> The migration rewrites your config files.
>
> - Export your current settings
> - Note the version number

> **Info**
>
> A callout without an icon.

> **Info**
>
> Mintlify custom color, mapped to the nearest intent.

## Cards

[**Accept a payment**](/guides/guides/accept-a-payment)

A single clickable card. Its border turns accent on hover.

[**Payments**](/guides/guides/accept-a-payment)

Charge cards and wallets.

[**Webhooks**](/guides/guides/webhooks/overview)

Get notified about events.

[**Authentication**](/guides/get-started/authentication)

Keep your keys safe.

**Not clickable**

Cards without href have no hover state.

[**Quickstart**](/guides/get-started/quickstart)

[**Configuration**](/guides/get-started/introduction)

[**Deploy**](/guides/get-started/introduction)

[**Icon on the left**](https://example.com)

Icon and text side by side, with an arrow in the corner.

[**Horizontal (Mintlify)**](/guides/get-started/quickstart)

[**With a call to action**](/guides/get-started/quickstart)

Mintlify's `cta` label.

[**Top image**](/guides/get-started/quickstart)

The image fills the card width.

**Image on the left**

Left image, 24px padding on the content side.

**Colored icon**

Icon color via `color`, with a [link inside](/guides/get-started/quickstart).

## Columns

First column content.

Second column content.

## Tile

[**Component overview**](/guides/get-started/introduction) — Browse every built-in component.

## Accordions

<details>
<summary>A single accordion</summary>

Expanded content with 20px horizontal padding.

</details>

<details open>
<summary>First section</summary>

The first section, open by default.

</details>

<details>
<summary>Second section</summary>

> **Note**
>
> A nested callout.

</details>

<details>
<summary>With icon and description</summary>

Content.

</details>

## Tabs

**First tab**

👋 Welcome to the first tab.

**Second tab**

Switching tabs has no animation.

**With icon**

The label has a 14px icon.

Language tabs stay in sync with each other (and across pages):

**TypeScript**

TypeScript content (set A).

**Python**

Python content (set A).

**TypeScript**

TypeScript content (set B).

**Python**

Python content (set B).

**macOS**

`brew install acme`

**Linux**

`apt install acme`

**Windows**

`winget install acme`

## Steps

### Step

Log in to the dashboard and open **Settings**.

### Step

Choose **Change password** and save.

### Install the SDK

Install with your package manager: `npm i @acme/sdk`.

### Get an API key

Create a key in the dashboard.

> **Note**
>
> The key is shown only once.

### Initialize the client

The last step has no line below it.

### Heading-based step

Markdown headings inside `<Steps>` become steps.

### Another heading step

And show up in the table of contents.

## Badges

`Success`

`Note`

`Tip`

`Warning`

`Error`

`Info`

`Launch`

`Check`

`Minimal`

`Outlined`

`Both`

`xs`

`sm`

`md`

`lg pill`

`Disabled`

## Buttons

Primary

Success

Warning

Danger

Plain

Outlined

Large, outlined, rounded

Minimal

Neutral minimal

Monospace

Small

Normal

Large

Download

[Continue](/guides/get-started/quickstart)

Disabled

## Frame

![Mountains](../assets/mountains.svg)

_A framed image (click to zoom)_

> Mintlify hint shown above the frame.

![Mountains](../assets/mountains.svg)

A plain Markdown image also zooms:

![Mountains](../assets/mountains.svg)

## Tooltips

Hover the dotted text (A short explanation, on top by default.) to see a tip; it can also sit below (side="bottom") or to the right (Rich content with a link.).

## Icons, Indent, Anchor

&#x20;Default size ·  Fern size 7 ·  Custom color ·  Light / dark color

This line is not indented.

This line is inside `<Indent>`, shifted 16px.

This sentence contains a custom anchor that highlights when targeted. [Jump to it](#data).

## Aside

> **Info**
>
> On wide screens (≥ 1280px) this floats to the right of the article and stays sticky.

Aside is for code samples or notes that should stay visible while reading.

## Color

- **primary**: `#7C5CFF`

- **surface**: `#ffffff` / `#0b0b0b`

- **info**: `#0ea5e9`

**Brand**

- **brand-500**: `#0ea5e9`

- **brand-700**: `#0369a1`

**Neutral**

- **gray-100**: `#f3f4f6`

- **gray-900**: `#111827`

## Copy and Download

Current version `v2024-06`, install with `npm install -g @acme/cli`.

[Download the logo](../assets/logo.svg)

[Download logo](../assets/logo.svg)

[logo.svg](../assets/logo.svg), [logo-dark.svg](../assets/logo-dark.svg)

## Files

```
components/
  layout/
    header.mdx
    footer.mdx
  ui/
    button.mdx
  accordion.mdx
assets/
  styles.css
quickstart.mdx
README.md
```

```
app/
  page.tsx
```

## GitHub repository

[example/acme](https://github.com/example/acme)

[example/acme-node](https://github.com/example/acme-node)

## Prompt

```text
You are a **docs assistant**. Help the user create and publish a new Acme integration.
```

**Generate a TypeScript client**

```text
Using the Acme OpenAPI spec, generate a TypeScript client and follow the quickstart guide.

Add retries for 5xx responses, typed errors, and an example for each endpoint.

Keep the public surface small: one `Acme` class with `payments`, `customers` and `refunds` namespaces.

Write unit tests for the request signing helper.

Finally, write a README with installation and usage sections.
```

## Scroll walkthrough

### Install the SDK

Add the Acme SDK to your project.

### Create the client

Point the client at the API with your key.

**Import** Import the client.

Construct it with your API key.

### Create a payment

Charge your first payment.

```bash Terminal
npm install @acme/sdk
```

```ts client.ts
import { Acme } from "@acme/sdk";

const acme = new Acme({
  apiKey: process.env.ACME_API_KEY,
});

await acme.payments.create({
  amount: 2000,
  currency: "usd",
});
```

## Update

## 2024-06-01

_v2024-06_

Added bulk refunds and fixed pagination for large customer lists.

## 2024-01-15

First public release.

- Markdown and MDX
- Light and dark themes

## Versions

### Version 2.0

This is the **2.0** content (default). Choosing a version updates `?v=` in the URL.

### Version 1.0

This is the **1.0** content.

## Parameters

- `amount` (integer, required): Amount in cents.

- `limit` (query, integer, default: 20): Maximum number of items per page.

- `X-Api-Key` (header, string, deprecated): Use OAuth instead.

- `data.customer` (object): The customer object.
  
    - `id` (string, required): Unique id.
    
    - `email` (string): Email address.

## Sticky table

| Plan    | Requests / min | Webhooks  | Support   | Region | SLA    |
| ------- | -------------- | --------- | --------- | ------ | ------ |
| Free    | 60             | 1         | Community | US     | —      |
| Starter | 600            | 5         | Email     | US, EU | 99.9%  |
| Growth  | 3,000          | 25        | Email     | US, EU | 99.95% |
| Scale   | 10,000         | Unlimited | Slack     | Global | 99.99% |

## Embeds

[Product tour](https://www.youtube.com/watch?v=dQw4w9WgXcQ)

[Video](https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4)

## Snippets and conditions

> **Test mode**
>
> Use keys that start with `sk_test_` while you build. Requests made with test keys never move real money.

This paragraph is only rendered on the English site.

这段只在中文站点显示。

Shown whenever the reader is not on version v1.

Never rendered in static builds (role-gated).

## Banner

> Acme API v2024-06 is live. See what changed.

## Footnotes

Static sites load fast[^speed] and cache well[^cache].

[^speed]: First paint depends on network and caching.

[^cache]: CDNs can cache hashed assets for a long time.

## Mermaid

```mermaid
graph LR
  A[Client] --> B[Acme API]
```
