Skip to content

Commit

Permalink
use Label
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Oct 15, 2024
1 parent 93968a7 commit 47f313d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/actify/src/components/Sliders/Slider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { AriaSliderProps, useNumberFormatter, useSlider } from 'react-aria'

import { Label } from '../Label/Label'
import React from 'react'
import { Thumb } from './Thumb'
import clsx from 'clsx'
Expand Down Expand Up @@ -43,7 +44,7 @@ const Slider = (props: SliderProps) => {
{/* Create a container for the label and output element. */}
{props.label && (
<div className={styles['label-container']}>
<label {...labelProps}>{props.label}</label>
<Label {...labelProps}>{props.label}</Label>
<output {...outputProps}>{state.getThumbValueLabel(0)}</output>
</div>
)}
Expand Down

0 comments on commit 47f313d

Please sign in to comment.