radix-vue
Version:
Vue port for Radix UI Primitives.
29 lines (28 loc) • 1.28 kB
TypeScript
import { 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<__VLS_TypePropsToOption<ToastActionProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<ToastActionProps>>>, {}, {}>, {
default?(_: {}): any;
}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToOption<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};