import { CSSResultGroup } from "lit"; import { SigveloElement } from "@mcp-b/wc-support/base/sigvelo-element"; //#region src/components/badge/badge.d.ts /** * * * @summary Displays useful information or notifications such as a new feature or an unread message count. * @tag sigvelo-badge * @documentation https://design-system.sigvelo.com/docs/components/badge * @status stable * @since 1.0 * * @slot - The badge's content. * * @cssproperty [--attention-duration=1.5s] - The speed at which the attention animation will run. * @cssproperty [--attention-easing=ease] - The easing to use for the attention animation. * * @example Default * ```html * 12 items * ``` * * @example Variants * Set the `color` attribute to `neutral`, `primary`, `success`, or `destructive` to change the badges's color. * * ```html * Neutral * Primary * Constructive * Destructive * ``` * * @example Outline badges * Set the `variant` attribute to `outline` to draw outlined badges. * * ```html * Neutral * Primary * Constructive * Destructive * ``` * * @example Changing the size * Badges are sized relative to the current font size. This allows you to place them into many contexts without having to explicitly size them. To change the size, set the `font-size` property on the badge or an ancestor element. * * ```html * Normal * Big * Bigger * ``` * * @example Drawing attention * Set the `attention` attribute to `tap`, `shake`, or `sparkle` to draw attention to a badge with an animation. Remove the attribute to stop the animation. Users with a preference for reduced motion will see a more subtle pulse animation. * * ```html * Primary * Shake * Sparkle * ``` * * **Note:** You can customize the speed and easing of attention animations using the `--attention-duration` and `--attention-easing` custom properties. * * @example Styling badges * Use the `color`, `background-color`, and `border-color` properties to change badge colors. You can also apply gradients with the `background-image` property. * * ```html * Royal Blue * Deep Pink * Forest Green * ``` * * @example Using icons * Icons can be added before or after the badge's text. * * ```html * Bug * Documentation * Duplicate * ``` * * Badges can also be icon-only. * * ```html * * * * ``` */ declare class SigveloBadge extends SigveloElement { static styles: CSSResultGroup; /** The type of badge to draw. */ color: "neutral" | "primary" | "success" | "warning" | "destructive"; /** Determines the badges's variant. */ variant: "normal" | "outline"; /** Draws attention to the badge using an animation. */ attention: "tap" | "shake" | "sparkle"; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { "sigvelo-badge": SigveloBadge; } } //#endregion export { SigveloBadge as t };