mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
134
components/lib/button/Button.d.ts
vendored
Executable file
134
components/lib/button/Button.d.ts
vendored
Executable file
|
@ -0,0 +1,134 @@
|
|||
/**
|
||||
*
|
||||
* Button is an extension to standard button element with icons and theming.
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/button/)
|
||||
*
|
||||
* @module button
|
||||
*
|
||||
*/
|
||||
import { ButtonHTMLAttributes, VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
/**
|
||||
* Defines valid properties in Button component.
|
||||
*/
|
||||
export interface ButtonProps extends ButtonHTMLAttributes {
|
||||
/**
|
||||
* Inline style of the button.
|
||||
*/
|
||||
style?: any;
|
||||
/**
|
||||
* Style class of the button.
|
||||
*/
|
||||
class?: any;
|
||||
/**
|
||||
* Text of the button.
|
||||
*/
|
||||
label?: string | undefined;
|
||||
/**
|
||||
* Name of the icon.
|
||||
*/
|
||||
icon?: string | undefined;
|
||||
/**
|
||||
* Position of the icon.
|
||||
* @defaultValue left
|
||||
*/
|
||||
iconPos?: 'left' | 'right' | 'top' | 'bottom' | undefined;
|
||||
/**
|
||||
* Style class of the icon.
|
||||
*/
|
||||
iconClass?: string | undefined;
|
||||
/**
|
||||
* Value of the badge.
|
||||
*/
|
||||
badge?: string | undefined;
|
||||
/**
|
||||
* Style class of the badge.
|
||||
*/
|
||||
badgeClass?: string | undefined;
|
||||
/**
|
||||
* Whether the button is in loading state.
|
||||
* @defaultValue false
|
||||
*/
|
||||
loading?: boolean | undefined;
|
||||
/**
|
||||
* Icon to display in loading state.
|
||||
* @defaultValue pi pi-spinner pi-spin
|
||||
*/
|
||||
loadingIcon?: string | undefined;
|
||||
/**
|
||||
* Add a link style to the button.
|
||||
* @defaultValue false
|
||||
*/
|
||||
link?: boolean | undefined;
|
||||
/**
|
||||
* Defines the style of the button.
|
||||
*/
|
||||
severity?: 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | undefined;
|
||||
/**
|
||||
* Add a shadow to indicate elevation.
|
||||
* @defaultValue false
|
||||
*/
|
||||
raised?: boolean | undefined;
|
||||
/**
|
||||
* Add a circular border radius to the button.
|
||||
* @defaultValue false
|
||||
*/
|
||||
rounded?: boolean | undefined;
|
||||
/**
|
||||
* Add a textual class to the button without a background initially.
|
||||
* @defaultValue false
|
||||
*/
|
||||
text?: boolean | undefined;
|
||||
/**
|
||||
* Add a border class without a background initially.
|
||||
* @defaultValue false
|
||||
*/
|
||||
outlined?: boolean | undefined;
|
||||
/**
|
||||
* Defines the size of the button.
|
||||
*/
|
||||
size?: 'small' | 'large' | undefined;
|
||||
/**
|
||||
* Add a plain textual class to the button without a background initially.
|
||||
* @defaultValue false
|
||||
*/
|
||||
plain?: boolean | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in Button component.
|
||||
*/
|
||||
export interface ButtonSlots {
|
||||
/**
|
||||
* Custom content such as icons, images and text can be placed inside the button via the default slot. Note that when slot is used, label, icon and badge properties are not included.
|
||||
*/
|
||||
default(): VNode[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid emits in Button component.
|
||||
*/
|
||||
export interface ButtonEmits {}
|
||||
|
||||
/**
|
||||
* **PrimeVue - Button**
|
||||
*
|
||||
* _Button is an extension to standard button element with icons and theming._
|
||||
*
|
||||
* [Live Demo](https://www.primevue.org/button/)
|
||||
* --- ---
|
||||
* 
|
||||
*
|
||||
* @group Component
|
||||
*/
|
||||
declare class Button extends ClassComponent<ButtonProps, ButtonSlots, ButtonEmits> {}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {
|
||||
Button: GlobalComponentConstructor<Button>;
|
||||
}
|
||||
}
|
||||
|
||||
export default Button;
|
Loading…
Add table
Add a link
Reference in a new issue