UNPKG

@kobalte/core

Version:

Unstyled components and primitives for building accessible web apps and design systems with SolidJS.

23 lines (19 loc) 885 B
import * as solid_js from 'solid-js'; import { ValidComponent } from 'solid-js'; import { PolymorphicProps } from '../polymorphic/index.js'; import '@kobalte/utils'; interface BadgeRootOptions { /** * Accessible text description of the badge if child is not text. */ textValue?: string; } interface BadgeRootCommonProps<T extends HTMLElement = HTMLElement> { "aria-label"?: string; } interface BadgeRootRenderProps extends BadgeRootCommonProps { } type BadgeRootProps<T extends ValidComponent | HTMLElement = HTMLElement> = BadgeRootOptions & Partial<BadgeRootCommonProps>; declare function BadgeRoot<T extends ValidComponent = "span">(props: PolymorphicProps<T, BadgeRootProps<T>>): solid_js.JSX.Element; declare const Badge: typeof BadgeRoot; export { Badge, BadgeRootCommonProps, BadgeRootOptions, BadgeRootProps, BadgeRootRenderProps, BadgeRoot as Root };