2023-03-01 13:00:40 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Badge represents people using icons, labels and images.
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/badge)
|
|
|
|
*
|
|
|
|
* @module badge
|
|
|
|
*
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
import { VNode } from 'vue';
|
|
|
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
|
|
|
2023-03-01 13:00:40 +00:00
|
|
|
/**
|
|
|
|
* Defines valid properties in Badge component.
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
export interface BadgeProps {
|
|
|
|
/**
|
|
|
|
* Value to display inside the badge.
|
|
|
|
*/
|
|
|
|
value?: any;
|
|
|
|
/**
|
|
|
|
* Severity type of the badge.
|
|
|
|
*/
|
2023-03-01 13:00:40 +00:00
|
|
|
severity?: 'info' | 'success' | 'warning' | 'danger' | undefined;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Size of the badge, valid options are 'large' and 'xlarge'.
|
|
|
|
*/
|
2023-03-01 13:00:40 +00:00
|
|
|
size?: 'large' | 'xlarge' | undefined;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
|
2023-03-01 13:00:40 +00:00
|
|
|
/**
|
|
|
|
* Defines valid slots in Badge component.
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
export interface BadgeSlots {
|
|
|
|
/**
|
|
|
|
* Content can easily be customized with the default slot instead of using the built-in display.
|
|
|
|
*/
|
2023-03-01 13:00:40 +00:00
|
|
|
default(): VNode[];
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
|
2023-03-01 13:00:40 +00:00
|
|
|
/**
|
|
|
|
* Defines valid emits in Badge component.
|
|
|
|
*/
|
|
|
|
export interface BadgeEmits {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2023-03-01 13:00:40 +00:00
|
|
|
/**
|
|
|
|
* **PrimeVue - Badge**
|
|
|
|
*
|
|
|
|
* _Badge represents people using icons, labels and images._
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/badge/)
|
|
|
|
* --- ---
|
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
|
|
|
*
|
|
|
|
* @group Component
|
|
|
|
*/
|
2022-09-14 11:26:01 +00:00
|
|
|
declare class Badge extends ClassComponent<BadgeProps, BadgeSlots, BadgeEmits> {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
|
|
|
declare module '@vue/runtime-core' {
|
|
|
|
interface GlobalComponents {
|
2022-09-14 11:26:01 +00:00
|
|
|
Badge: GlobalComponentConstructor<Badge>;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Badge;
|