UNPKG

@ark-ui/vue

Version:

A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.

10 lines (7 loc) 286 B
import { highlightWord } from '@zag-js/highlight-word'; import { computed, toValue } from 'vue'; import { cleanProps } from '../../utils/clean-props.js'; const useHighlight = (props) => { return computed(() => highlightWord(cleanProps(toValue(props)))); }; export { useHighlight };