ui/select.tsx

saas-boilerplate · packages/webapp-libs/webapp-core/src/components/ui/select.tsx · typescript · MIT
ui, UI / Frontend

select.tsx from apptension/saas-boilerplate

// Source: https://github.com/apptension/saas-boilerplate | License: MIT | Copyright 2023 Apptension
// Provided via justclaw.it.com; keep this notice with the code.
import * as SelectPrimitive from '@radix-ui/react-select';
import { Check, ChevronDown, ChevronUp } from 'lucide-react';
import * as React from 'react';

import { cn } from '@sb/webapp-core/lib/utils';

const Select = SelectPrimitive.Root;

const SelectGroup = SelectPrimitive.Group;

const SelectValue = SelectPrimitive.Value;

const SelectTrigger = React.forwardRef<
  React.ElementRef<typeof SelectPrimitive.Trigger>,
  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
>(({ className, children, ...props }, ref) => (
  <SelectPrimitive.Trigger
    ref={ref}
    className={cn(
      'border-input bg-background ring-o

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key