UNPKG

@ark-ui/solid

Version:

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

18 lines (14 loc) 765 B
import * as solid_js from 'solid-js'; import { Accessor, ComponentProps } from 'solid-js'; import { M as MaybeAccessor, A as Assign } from '../../types-Bc0WfPsv.js'; import { HighlightWordProps, HighlightChunk } from '@zag-js/highlight-word'; export { HighlightChunk } from '@zag-js/highlight-word'; interface UseHighlightProps extends HighlightWordProps { } declare const useHighlight: (props: MaybeAccessor<UseHighlightProps>) => Accessor<HighlightChunk[]>; interface HighlightBaseProps extends UseHighlightProps { } interface HighlightProps extends Assign<ComponentProps<'mark'>, HighlightBaseProps> { } declare const Highlight: (props: HighlightProps) => solid_js.JSX.Element; export { Highlight, type HighlightProps, type UseHighlightProps, useHighlight };