- Move chat history from left sidebar to floating popover on tab bar - Add dench-ui components (Button, Card, Input, Label, Switch) with deps - Glassmorphism styling for all dropdowns/context menus with dark mode - Chrome-style active tab that merges with content area - Align sidebar header with tab bar (34px) - Condense sidebar header to single line - Move sidebar expand button into tab bar - Add next-themes for proper dark mode with system preference support - Add Tailwind v4 class-based dark mode via @custom-variant - Add dench-ui CSS tokens (light + dark) - Restore pointer cursor for all interactive elements - New chat button always visible in tab bar - "Delete this chat" label in dropdown menu Made-with: Cursor
19 lines
710 B
TypeScript
19 lines
710 B
TypeScript
"use client";
|
|
|
|
import * as React from "react";
|
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
|
|
|
|
const Label = React.forwardRef<
|
|
React.ElementRef<typeof LabelPrimitive.Root>,
|
|
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>
|
|
>(({ className, ...props }, ref) => (
|
|
<LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />
|
|
));
|
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
|
|
export { Label };
|