primevue-mirror/components/toolbar/Toolbar.d.ts

68 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-03-01 08:09:50 +00:00
/**
*
* Toolbar is a grouping component for buttons and other content.
*
* [Live Demo](https://www.primevue.org/toolbar/)
*
* @module toolbar
*
*/
2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2023-03-01 08:09:50 +00:00
/**
* Defines valid properties in Toolbar component.
*/
2022-09-06 12:03:37 +00:00
export interface ToolbarProps {
2022-09-14 11:26:01 +00:00
/**
* Defines a string value that labels an interactive element.
*/
'aria-labelledby'?: string | undefined;
2022-09-06 12:03:37 +00:00
}
2023-03-01 08:09:50 +00:00
/**
* Defines valid slots in Toolbar slots.
*/
2022-09-06 12:03:37 +00:00
export interface ToolbarSlots {
/**
* Custom start template.
*/
2023-03-01 08:09:50 +00:00
start(): VNode[];
2022-12-08 11:04:25 +00:00
/**
* Custom center template.
*/
2023-03-01 08:09:50 +00:00
center(): VNode[];
2022-12-08 11:04:25 +00:00
2022-09-06 12:03:37 +00:00
/**
* Custom end template.
*/
2023-03-01 08:09:50 +00:00
end(): VNode[];
2022-09-06 12:03:37 +00:00
}
2023-03-01 08:09:50 +00:00
/**
* Defines valid emits in Toolbar component.
*/
export interface ToolbarEmits {}
2022-09-06 12:03:37 +00:00
2023-03-01 08:09:50 +00:00
/**
* **PrimeVue - Toolbar**
*
* _Toolbar is a grouping component for buttons and other content._
*
* [Live Demo](https://www.primevue.org/toolbar/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg)
*
* @group Component
*
*/
2023-03-01 12:30:54 +00:00
declare class Toolbar extends ClassComponent<ToolbarProps, ToolbarSlots, ToolbarEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
Toolbar: GlobalComponentConstructor<Toolbar>;
2022-09-06 12:03:37 +00:00
}
}
export default Toolbar;