-
Notifications
You must be signed in to change notification settings - Fork 1
feat: 슬라이더 컴포넌트 추가 #1174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 슬라이더 컴포넌트 추가 #1174
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import type { Meta, StoryObj } from "@storybook/react-vite" | ||
| import { Slider } from "./slider" | ||
|
|
||
| const meta = { | ||
| title: "UI/Slider", | ||
| component: Slider, | ||
| parameters: { layout: "padded" }, | ||
| args: { defaultValue: [50], className: "w-[60%]" }, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🤖 get_repo_knowledge executed:
Length of output: 6026 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- target story ---'
sed -n '1,120p' apps/desktop/src/components/ui/slider.stories.tsx
printf '%s\n' '--- slider implementation ---'
sed -n '1,160p' apps/desktop/src/components/ui/slider.tsx
printf '%s\n' '--- nearby story patterns ---'
for f in apps/desktop/src/components/ui/*stories.tsx; do
if [ "$f" != "apps/desktop/src/components/ui/slider.stories.tsx" ]; then
printf '\n### %s\n' "$f"
sed -n '1,80p' "$f"
fi
doneRepository: ContextualWisdomLab/bandscope Length of output: 4139 슬라이더 스토리에 접근 가능한 이름을 추가하세요.
🤖 Prompt for AI Agents |
||
| } satisfies Meta<typeof Slider> | ||
|
|
||
| export default meta | ||
| type Story = StoryObj<typeof meta> | ||
|
|
||
| export const Default: Story = {} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| "use client" | ||
|
|
||
| import * as React from "react" | ||
| import { Slider as SliderPrimitive } from "@base-ui/react/slider" | ||
| import { cn } from "@/lib/utils" | ||
|
|
||
| /** Render a styled slider component. */ | ||
| const Slider = React.forwardRef< | ||
| React.ElementRef<typeof SliderPrimitive.Root>, | ||
| React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> | ||
| >(({ className, ...props }, ref) => ( | ||
| <SliderPrimitive.Root | ||
| ref={ref} | ||
| data-slot="slider" | ||
| className={cn("relative flex w-full touch-none select-none items-center", className)} | ||
| {...props} | ||
| > | ||
| <SliderPrimitive.Control data-slot="slider-control" className="relative flex w-full items-center"> | ||
| <SliderPrimitive.Track data-slot="slider-track" className="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary"> | ||
| <SliderPrimitive.Indicator data-slot="slider-indicator" className="absolute h-full bg-primary" /> | ||
| </SliderPrimitive.Track> | ||
| <SliderPrimitive.Thumb | ||
| data-slot="slider-thumb" | ||
| className="block size-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" | ||
| /> | ||
| </SliderPrimitive.Control> | ||
| </SliderPrimitive.Root> | ||
| )) | ||
| Slider.displayName = "Slider" | ||
|
|
||
| export { Slider } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
중복된 릴리스 버전을 수정하세요.
CHANGELOG.mdLine 72에 이미[0.1.4] - 2026-05-15가 있습니다. Line 80에서 같은[0.1.4]버전을 다시 선언하면 하나의 버전이 두 릴리스에 대응합니다. Slider 항목을 기존[0.1.4]섹션으로 이동하거나 릴리스 정책에 맞는 다음 버전을 사용하세요.🤖 Prompt for AI Agents