Skip to content

Conversation

dan-hale
Copy link
Contributor

@dan-hale dan-hale commented Jun 17, 2025 β€’

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Customize appearence of value in slider tooltip, such as with NumberFlow:

<USlider v-model="selected" tooltip v-slot="text">
  <NumberFlow :value="text" :format="{ style: 'decimal', trailingZeroDisplay: 'stripIfInteger' }" />
</USlider>

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Concerns

  1. I'm not sure what steps are necessary to properly add this to the documentation
  2. On lines 136-138, I place the slot in template with v-if. I'm unsure if this is the best way to do this. I'm trying ensure when no slot is passed, the default tooltip content is used.

@dan-hale dan-hale requested a review from benjamincanac as a code owner June 17, 2025 01:45
@benjamincanac benjamincanac added the v3 #1289 label Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 #1289
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants