Command list appearing issue inside table with horizontal scroll. #7439
iaaliahmad
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
"use client";
import * as React from "react";
import { X } from "lucide-react";
import { Badge } from "@/components/ui/badge";
import {
Command,
CommandGroup,
CommandItem,
CommandList,
} from "@/components/ui/command";
import { Command as CommandPrimitive } from "cmdk";
type Option = Record<"value" | "label", string>;
interface SearchableSelectProps {
options: Option[];
value: Option | Option[] | null;
onChange: (value: Option | Option[] | null) => void;
multiple?: boolean;
placeholder?: string;
className?: string;
hasError?: boolean;
onInputChange?: (value: string) => void;
isLoading?: boolean;
}
export default function SearchableSelect({
options,
value,
onChange,
placeholder = "Select an option",
multiple = false,
className = "",
hasError = false,
onInputChange, // server-side handling
isLoading = false,
}: SearchableSelectProps) {
}
Beta Was this translation helpful? Give feedback.
All reactions