ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/llms-txt-hub / packages/design-system/components/shadcn/slider.tsx

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/llms-txt-hub / packages/design-system/components/shadcn/slider.tsx
DateNot specified in source
RepositoryJanady13/llms-txt-hub
Revisione0f4bf978d4df168369c7601d9c5f5ea89e84377
Branchmain
Path or archive memberpackages/design-system/components/shadcn/slider.tsx
Original SHA-2563b5b5080e24ba275dbde555d3bba0d0a800d941f38f69b5e3efc1271c7702b94
Git blob SHAe95aeebb6a2561f8fe7b270830a92db64dcd1395
Reading-copy SHA-2563b5b5080e24ba275dbde555d3bba0d0a800d941f38f69b5e3efc1271c7702b94

Original source ↗

Recovered source transcript

'use client' import * as SliderPrimitive from '@radix-ui/react-slider' import * as React from 'react' import { cn } from '../../lib/utils' function Slider({ className, defaultValue, value, min = 0, max = 100, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>) { const _values = React.useMemo( () => (Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max]), [value, defaultValue, min, max] ) return ( <SliderPrimitive.Root data-slot="slider" defaultValue={defaultValue} value={value} min={min} max={max} className={cn( 'relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col', className )} {...props} > <SliderPrimitive.Track data-slot="slider-track" className={cn( 'bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5' )} > <SliderPrimitive.Range data-slot="slider-range" className={cn( 'bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full' )} /> </SliderPrimitive.Track> {Array.from({ length: _values.length }, (_, index) => ( <SliderPrimitive.Thumb data-slot="slider-thumb" key={index} className="border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50" /> ))} </SliderPrimitive.Root> ) } export { Slider }

Search equations, builds, manuscript text, and recovered sources.