# P group 22

> Group with two number inputs for range

A shadcn/ui block from the [@coss](https://coss.com/ui) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/coss/p-group-22).

- Page, with a live preview: https://shadcn.exchange/r/coss/p-group-22
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/coss/p-group-22-light-e49ca8df1112cf23.png
- Registry item: https://coss.com/ui/r/p-group-22.json
- Categories: group, label, number field
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://coss.com/ui/r/p-group-22.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@coss/group`, `@coss/label`, `@coss/number-field`

## Files

### `registry/default/particles/p-group-22.tsx`

```tsx
import { Group, GroupSeparator } from "@/registry/default/ui/group";
import { Label } from "@/registry/default/ui/label";
import {
  NumberField,
  NumberFieldGroup,
  NumberFieldInput,
} from "@/registry/default/ui/number-field";

export default function Particle() {
  return (
    <div className="flex flex-col gap-2">
      <Label>Range</Label>
      <Group aria-label="Range input">
        <NumberField aria-label="Min value" render={<NumberFieldGroup />}>
          <NumberFieldInput className="text-left" placeholder="From" />
        </NumberField>
        <GroupSeparator />
        <NumberField aria-label="Max value" render={<NumberFieldGroup />}>
          <NumberFieldInput className="text-left" placeholder="To" />
        </NumberField>
      </Group>
    </div>
  );
}
```
