UNPKG

@ark-ui/vue

Version:

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

10 lines (9 loc) 346 B
import { cleanProps } from "../../utils/clean-props.js"; import { computed, toValue } from "vue"; import { highlightWord } from "@zag-js/highlight-word"; //#region src/components/highlight/use-highlight.ts var useHighlight = (props) => { return computed(() => highlightWord(cleanProps(toValue(props)))); }; //#endregion export { useHighlight };