useAngleSlider (angle-slider/use-angle-slider.ts)

ark · packages/vue/src/components/angle-slider/use-angle-slider.ts · typescript · MIT
ui

Module exposing: useAngleSlider

// Source: https://github.com/chakra-ui/ark | License: MIT | Copyright 2024 Chakra Systems Inc
// Provided via justclaw.it.com; keep this notice with the code.
import * as angleSlider from '@zag-js/angle-slider'
import { type PropTypes, normalizeProps, useMachine } from '@zag-js/vue'
import { type ComputedRef, type EmitFn, type MaybeRefOrGetter, computed, toValue, useId } from 'vue'
import { DEFAULT_ENVIRONMENT, DEFAULT_LOCALE, useEnvironmentContext, useLocaleContext } from '../../providers/index.ts'
import type { Optional } from '../../types.ts'
import { cleanProps } from '../../utils/clean-props.ts'
import type { RootEmits } from './angle-slider.types.ts'

export interface UseAngleSliderProps extends Optional<angleSlider.Props, 'id'> {
  /**
   * The v-model value of the angle slider
   

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key