Skip to content

feat: add slider component #17431

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

Merged
merged 2 commits into from
Apr 17, 2025
Merged

feat: add slider component #17431

merged 2 commits into from
Apr 17, 2025

Conversation

jaaydenh
Copy link
Contributor

@jaaydenh jaaydenh commented Apr 16, 2025

The slider component is part of the components supported by Dynamic Parameters

There are no Figma designs for the slider component. This is based on the shadcn slider.

Screenshot 2025-04-16 at 19 26 11

@jaaydenh jaaydenh self-assigned this Apr 16, 2025
Copy link
Member

@Parkreiner Parkreiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just had one suggestion about removing a possible footgun with the base Shad implementation

Comment on lines 16 to 19
className={cn(
"relative flex w-full touch-none select-none items-center h-1.5",
className,
)}
Copy link
Member

@Parkreiner Parkreiner Apr 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to split this off into three values, since two of the classes are actually behavioral and not just stylistic? I don't see a case where we would ever want those to be overridden

className={cn(
  "relative flex w-full items-center h-1.5",
  className,
  "touch-none select-none",
)}

I'd rather make a bad UX edge case impossible out of the gate, over optimizing for a use case that might not ever exist

@jaaydenh jaaydenh merged commit 67a9127 into main Apr 17, 2025
34 checks passed
@jaaydenh jaaydenh deleted the jaaydenh/slider-component branch April 17, 2025 10:27
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants