primevue-mirror/components/badgedirective/BadgeDirective.d.ts

61 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-03-02 11:05:45 +00:00
/**
*
* Badge directive is a small status indicator for another element.
*
* - [Live Demo](https://primevue.org/badge)
*
* @module badgedirective
2023-03-02 11:05:45 +00:00
*/
import { DirectiveBinding, ObjectDirective } from 'vue';
2022-09-06 12:03:37 +00:00
2023-03-02 11:05:45 +00:00
/**
* Defines modifiers of Badge directive.
*/
export interface BadgeDirectiveModifiers {
2023-03-02 11:05:45 +00:00
/**
* Success severity for Badge directive.
*/
success?: string | undefined;
/**
* Info severity for Badge directive.
*/
info?: string | undefined;
/**
* Warning severity for Badge directive.
*/
warning?: string | undefined;
/**
* Danger severity for Badge directive.
*/
danger?: string | undefined;
}
2023-03-02 11:05:45 +00:00
/**
* Binding of Badge directive.
*/
export interface BadgeDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
/**
* Value of the Badge.
*/
value?: string | undefined;
/**
* Modifiers of the Badge.
* @type {BadgeDirectiveModifiers}
*/
modifiers?: BadgeDirectiveModifiers | undefined;
}
/**
* **PrimeVue - Badge**
*
* _Badge directive provides advisory information for a component._
*
* [Live Demo](https://www.primevue.org/badge/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg)
*
*/
2022-09-06 12:03:37 +00:00
declare const BadgeDirective: ObjectDirective;
export default BadgeDirective;