Skip to content

Replace variations slider with button picker#51

Merged
saeeabhy merged 1 commit intomainfrom
ai_main_97a138ef77e0
Mar 18, 2026
Merged

Replace variations slider with button picker#51
saeeabhy merged 1 commit intomainfrom
ai_main_97a138ef77e0

Conversation

@saeeabhy
Copy link
Contributor

@saeeabhy saeeabhy commented Mar 18, 2026

Summary

Replaces the range slider used to select the number of image variations with a segmented button picker for a cleaner, more intuitive interaction.

Problem

The slider element was considered a poor UX choice for selecting the number of variations (1–8), as it lacks precision and visual clarity for a small, discrete set of options.

Solution

Replaced the <input type="range"> with a row of styled toggle buttons, one for each variation count (1–8), rendered inside a bordered inline-flex container.

Key Changes

  • Removed the range slider and its associated label layout (value display on the right)
  • Added a segmented button group rendering buttons for values 1 through 8
  • Active selection is highlighted using bg-primary / text-primary-foreground styles
  • Inactive buttons show muted text with a hover state for discoverability
  • Buttons have rounded corners on the first and last items to form a cohesive pill-like group

Edit in Builder  Preview


To clone this PR locally use the Github CLI with command gh pr checkout 51

You can tag me at @BuilderIO for anything you want me to fix or change

@netlify
Copy link

netlify bot commented Mar 18, 2026

Deploy Preview for agent-native-fw ready!

Name Link
🔨 Latest commit a522e81
🔍 Latest deploy log https://app.netlify.com/projects/agent-native-fw/deploys/69ba6e04f271340008d08947
😎 Deploy Preview https://deploy-preview-51--agent-native-fw.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@builder-io-integration builder-io-integration bot changed the title Update from the Builder.io agent Replace variations slider with button picker Mar 18, 2026
@saeeabhy saeeabhy requested a review from steve8708 March 18, 2026 09:23
@saeeabhy
Copy link
Contributor Author

Small change, just wanted to try something out

@saeeabhy saeeabhy merged commit e321c02 into main Mar 18, 2026
9 checks passed
@saeeabhy saeeabhy deleted the ai_main_97a138ef77e0 branch March 18, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants