# Surface

> Elevated surface container with padding and variant options.

Registry name: `surface`. HTML docs: https://ui.anuragroy.dev/component/surface.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/surface.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/surface.json`.

Registry JSON: https://ui.anuragroy.dev/r/surface.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/surface.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import { Surface } from "@/components/ui/surface"
```

## Usage

```tsx
import { Surface } from "@/components/ui/surface"

export function Example() {
  return <Surface>Surface content</Surface>
}
```

## API

### Surface

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | "solid" \| "soft" \| "outline" \| "ghost" | "solid" |  |
| `padding` | "none" \| "sm" \| "md" \| "lg" | "md" |  |

## See also

- [HTML page](https://ui.anuragroy.dev/component/surface): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/surface.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
