38 lines
1.7 KiB
TypeScript
Executable file
38 lines
1.7 KiB
TypeScript
Executable file
import Component from '../../components/button/button.component.js';
|
|
import { type EventName } from '@lit/react';
|
|
import type { SlBlurEvent } from '../../events/events.js';
|
|
import type { SlFocusEvent } from '../../events/events.js';
|
|
import type { SlInvalidEvent } from '../../events/events.js';
|
|
export type { SlBlurEvent } from '../../events/events.js';
|
|
export type { SlFocusEvent } from '../../events/events.js';
|
|
export type { SlInvalidEvent } from '../../events/events.js';
|
|
/**
|
|
* @summary Buttons represent actions that are available to the user.
|
|
* @documentation https://shoelace.style/components/button
|
|
* @status stable
|
|
* @since 2.0
|
|
*
|
|
* @dependency sl-icon
|
|
* @dependency sl-spinner
|
|
*
|
|
* @event sl-blur - Emitted when the button loses focus.
|
|
* @event sl-focus - Emitted when the button gains focus.
|
|
* @event sl-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 `<sl-icon>` element.
|
|
* @csspart spinner - The spinner that shows when the button is in the loading state.
|
|
*/
|
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
|
onSlBlur: EventName<SlBlurEvent>;
|
|
onSlFocus: EventName<SlFocusEvent>;
|
|
onSlInvalid: EventName<SlInvalidEvent>;
|
|
}>;
|
|
export default reactWrapper;
|