radix-vue
Version:
Vue port for Radix UI Primitives.
42 lines (41 loc) • 1.52 kB
TypeScript
import type { ToastCloseProps } from "./ToastClose";
export interface ToastActionProps extends ToastCloseProps {
/**
* A short description for an alternate way to carry out the action. For screen reader users
* who will not be able to navigate to the button easily/quickly.
* @example <ToastAction altText="Goto account settings to upgrade">Upgrade</ToastAction>
* @example <ToastAction altText="Undo (Alt+U)">Undo</ToastAction>
*/
altText: string;
}
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
altText: {
type: import("vue").PropType<string>;
required: true;
};
asChild: {
type: import("vue").PropType<boolean>;
};
as: {
type: import("vue").PropType<import("../Primitive").AsTag | import("vue").Component>;
};
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
altText: {
type: import("vue").PropType<string>;
required: true;
};
asChild: {
type: import("vue").PropType<boolean>;
};
as: {
type: import("vue").PropType<import("../Primitive").AsTag | import("vue").Component>;
};
}>>, {}, {}>, {
default?(_: {}): any;
}>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};