BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/pixelflow-ui/multi-select-nova

Multi Select Nova

pixelflow-ui/multi-select-nova
FreeComponent

pixelflow-ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by pixelflow-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://pixelflowui.lok1.dev/r/multi-select-nova.json

Source

src/registry/multi-select/nova/MultiSelectNova.jsxpixelflowui.lok1.dev/r/multi-select-nova.json · first 6 KB
1"use client";
2
3import * as React from "react";
4import { cva } from "class-variance-authority";
5import { CheckIcon, XCircle, ChevronDown, XIcon } from "lucide-react";
6import { motion, AnimatePresence } from "motion/react";
7
8import { cn } from "@/lib/utils";
9import { Button } from "@/components/ui/button";
10import { Badge } from "@/components/ui/badge";
11import {
12 Popover,
13 PopoverContent,
14 PopoverTrigger,
15} from "@/components/ui/popover";
16import {
17 Command,
18 CommandEmpty,
19 CommandGroup,
20 CommandItem,
21 CommandList,
22 CommandSeparator,
23} from "@/components/ui/command";
24
25const multiSelectVariants = cva(
26 "m-1 transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-110 duration-300",
27 {
28 variants: {
29 variant: {
30 default:
31 "border-foreground/10 text-foreground bg-card hover:bg-card/80",
32 secondary:
33 "border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",
34 destructive:
35 "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
36 inverted: "inverted",
37 },
38 },
39 defaultVariants: {
40 variant: "default",
41 },
42 }
43);
44
45export const MultiSelect = React.forwardRef(
46 (
47 {
48 options,
49 value,
50 variant,
51 placeholder = "Select options",
52 modalPopover = false,
53 asChild = false,
54 className,
55 wrap = true,
56 maxHeight = 200,
57 ...props
58 },
59 ref
60 ) => {
61 const [selectedValues, setSelectedValues] = React.useState(value ?? []);
62 const [maxCount, setMaxCount] = React.useState(null);
63 const [isPopoverOpen, setIsPopoverOpen] = React.useState(false);
64 const triggerRef = React.useRef(null);
65 const [triggerWidth, setTriggerWidth] = React.useState(0);
66 const optionsRefs = React.useRef([]);
67 const [lineBreak, setLineBreak] = React.useState(true);
68 const badgeRef = React.useRef(null);
69 const crossRef = React.useRef(null);
70
71 const areAllSelected = options.every((opt) =>
72 selectedValues.includes(opt.value)
73 );
74
75 const handleSelectAll = () => {
76 const allValues = options.map((opt) => opt.value);
77 const currentlyAllSelected = options.every((opt) =>
78 selectedValues.includes(opt.value)
79 );
80
81 const newSelectedValues = currentlyAllSelected ? [] : allValues;
82 setSelectedValues(newSelectedValues);
83 };
84
85 React.useEffect(() => {
86 if (isPopoverOpen && triggerRef.current) {
87// … truncated

What it pulls in

npm packages

  • class-variance-authority
  • lucide-react
  • motion

Other registry items

  • button
  • badge
  • popover
  • command

Files it writes

  • src/registry/multi-select/nova/MultiSelectNova.jsx

Facts

Registry
pixelflow-ui
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-12
Last confirmed
today

Go to the source

Docs on pixelflow-ui pixelflowui.lok1.dev lokidotdev/pixelflow-ui on GitHub Raw registry item This item as JSON

More from pixelflow-ui

All 35 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordion Lyraaccordion-lyrapixelflow-uiComponentsFree3 deps
Accordion Novaaccordion-novapixelflow-uiComponentsFree3 deps
Accordion Retroaccordion-retropixelflow-uiComponentsFree3 deps
Background 1background-1pixelflow-uiComponentsFreeno deps
Background 1Retrobackground-1-retropixelflow-uiComponentsFreeno deps
Bouncy Input Lyrabouncy-input-lyrapixelflow-uiComponentsFree1 dep
Bouncy Input Novabouncy-input-novapixelflow-uiComponentsFree1 dep
Bouncy Input Retrobouncy-input-retropixelflow-uiComponentsFree1 dep
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex