import { type ElementViewTemplate, html, slotted } from '@microsoft/fast-element';
import { endSlotTemplate, startSlotTemplate } from '../patterns/start-end.js';
import type { BaseButton } from './button.base.js';
import type { ButtonOptions } from './button.options.js';
/**
* Generates a template for the Button component.
*
* @public
*/
export function buttonTemplate(options: ButtonOptions = {}): ElementViewTemplate {
return html`
x.clickHandler(c.event as MouseEvent)}"
@keypress="${(x, c) => x.keypressHandler(c.event as KeyboardEvent)}"
>
${startSlotTemplate(options)}
${endSlotTemplate(options)}
`;
}
/**
* The template for the Button component.
*
* @public
*/
export const template: ElementViewTemplate = buttonTemplate();