UNPKG

@synergy-design-system/react

Version:
38 lines (37 loc) 1.83 kB
import Component from '@synergy-design-system/components/components/button/button.component.js'; import { type EventName } from '@lit/react'; import type { SynBlurEvent } from '@synergy-design-system/components'; import type { SynFocusEvent } from '@synergy-design-system/components'; import type { SynInvalidEvent } from '@synergy-design-system/components'; /** * @summary Buttons represent actions that are available to the user. * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-button--docs * @status stable * @since 2.0 * * @dependency syn-icon * @dependency syn-spinner * * @event syn-blur - Emitted when the button loses focus. * @event syn-focus - Emitted when the button gains focus. * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied. * * @slot - The button's label. * @slot prefix - A presentational prefix icon or similar element. * @slot suffix - A presentational suffix icon or similar element. * * @csspart base - The component's base wrapper. * @csspart prefix - The container that wraps the prefix. * @csspart label - The button's label. * @csspart suffix - The container that wraps the suffix. * @csspart caret - The button's caret icon, an `<syn-icon>` element. * @csspart spinner - The spinner that shows when the button is in the loading state. */ export declare const SynButton: import("@lit/react").ReactWebComponent<Component, { onSynBlur: EventName<SynBlurEvent>; onSynFocus: EventName<SynFocusEvent>; onSynInvalid: EventName<SynInvalidEvent>; }>; export type { SynBlurEvent } from '@synergy-design-system/components'; export type { SynFocusEvent } from '@synergy-design-system/components'; export type { SynInvalidEvent } from '@synergy-design-system/components';