# Attachment

Attachment renders the attachment.component.d.ts part of the attachment composition.

## Public import

```svelte
<script lang="ts">
  import { Attachment } from "rom-ui/primitives/attachment";
  import "rom-ui/styles";
</script>
```

## Composition and responsibility

Use this part with exports from the same primitive family. Interactive roots own shared interaction state. Content parts render the corresponding region.

Public names: `Root`, `Attachment`.

## Declared props

This declaration comes from the installed package. Imported types retain their upstream meaning.

```ts
type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
    state?: AttachmentState;
    size?: AttachmentSize;
    orientation?: AttachmentOrientation;
};
```

## Source and version

ROM UI **0.1.0-alpha.9**, published ROM 0.1.5 integration. Archive SHA-256: `d10cd9f1596fe958fea2203b1242473d97e1f5febee68d8bf285ecf07a1d053a`. Source: `src/lib/components/ui/attachment/attachment.svelte`.

See [the composition guide](/docs/studio-compositions/) for host integration boundaries.
