# ProfilePicker

> The "who is using this?" screen of an account several people share: a question and a grid of large avatars, each one a button that picks that profile.

```ts
import { ProfilePicker } from "@sdxc/ui/app";
```

Renders the picker centred on the page: the question as its heading, then two profiles to a
row on a phone and up to five on a wider screen.

## Examples

```tsx
<form method="post">
	<ProfilePicker title="Who's watching?">
		<ProfilePicker.Profile name="Noa" avatar={<Avatar />} formAction="/profiles/noa" />
	</ProfilePicker>
</form>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `title` | `RemixNode` | The question, such as "Who's watching?", which names the section. |
| `footer?` | `RemixNode` | A line under the grid, such as what a profile keeps apart. |
| `children` | `RemixNode` | ProfilePicker.Profile elements. |

Also accepts everything in `Omit<TagProps<"section">, "title">`.


### ProfilePicker.Profile

One profile: its avatar and name as a submit button.

| Prop | Type | Description |
| --- | --- | --- |
| `name` | `string` | The profile's name, the button's text. |
| `avatar` | `RemixNode` | The profile's picture, drawn square at the button's width. |
| `formAction?` | `string` | Where the pick posts, for a form holding every profile; see `formaction`. |
| `current?` | `boolean` | Marks the profile in use with `aria-current`. |

Also accepts everything in `Omit<TagProps<"button">, "children" | "name">`.

