# SelectionCard

Present selectable items and explicit host commands.

## Public import

```svelte
<script lang="ts">
  import { SelectionCard } from "rom-ui/ui/components";
  import "rom-studio/styles";
</script>
```

## Composition and responsibility

The host supplies data, callbacks and application policy. The component does not provide persistence or authorization.

Public names: `SelectionCard`.

## Declared props

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

```ts
type Props = {
    id: string;
    title: string;
    selected: boolean;
    onToggle: (
      id: string,
    ) => CompositionCommandResult | Promise<CompositionCommandResult>;
    authorityToken: unknown;
    recoveryToken?: unknown;
    disabled?: boolean;
    failedLabel: string;
    unknownLabel: string;
    children: Snippet;
    actions?: Snippet;
  };
```

## Source and version

ROM UI **0.1.0-alpha.7**. [Component source](https://github.com/pmikstacki/rom-ui/blob/v0.1.0-alpha.7/src/lib/ui/components/SelectionCard.svelte).

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