UNPKG

@synergy-design-system/components

Version:

This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define

19 lines (18 loc) 727 B
import { type TemplateResult } from 'lit'; import type SynOption from '../option/option.component.js'; /** * A type definition for a function that renders an option. * * @param option - The option to be rendered. * @param query - The current query string used for filtering options. * @returns - The changed option to render */ export type OptionRenderer = (option: SynOption, query?: string) => TemplateResult | string | HTMLElement; /** * The default option renderer, which does not change the option. */ export declare const defaultOptionRenderer: OptionRenderer; /** * A function that highlights the query string with a mark element in the option. */ export declare const highlightOptionRenderer: OptionRenderer;