# V group 18

> Price range input with apply button

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-group-18).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-group-18
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-group-18-light-5e6f3b8a8f145376.png
- Registry item: https://ui.cnippet.dev/r/v-group-18.json
- Categories: group
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-group-18.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: `@cnippet/group`

## Files

### `registry/default/variants/v-group-18.tsx`

```tsx
import { SearchIcon } from "lucide-react";
import { Button } from "@/registry/default/ui/button";
import { Group, GroupSeparator } from "@/registry/default/ui/group";
import { Input } from "@/registry/default/ui/input";
import {
  Select,
  SelectItem,
  SelectPopup,
  SelectTrigger,
  SelectValue,
} from "@/registry/default/ui/select";

const categories = [
  { label: "All", value: "all" },
  { label: "Articles", value: "articles" },
  { label: "People", value: "people" },
  { label: "Files", value: "files" },
];

export default function Particle() {
  return (
    <Group aria-label="Search with category filter">
      <Select defaultValue="all" items={categories}>
        <SelectTrigger className="w-fit min-w-none">
          <SelectValue />
        </SelectTrigger>
        <SelectPopup>
          {categories.map(({ label, value }) => (
            <SelectItem key={value} value={value}>
              {label}
            </SelectItem>
          ))}
        </SelectPopup>
      </Select>
      <GroupSeparator />
      <Input
        aria-label="Search"
        className="min-w-48"
        placeholder="Search…"
        type="search"
      />
      <GroupSeparator />
      <Button aria-label="Search" size="icon" variant="outline">
        <SearchIcon aria-hidden="true" />
      </Button>
    </Group>
  );
}
```
