import { type ElementViewTemplate, html } from '@microsoft/fast-element';
import { staticallyCompose } from '../utils/template-helpers.js';
import type { Radio } from './radio.js';
import type { RadioOptions } from './radio.options.js';
const checkedIndicator = html.partial(/* html */ `
`);
/**
* Generates a template for the {@link (Radio:class)} component.
*
* @param options - Radio configuration options
* @public
*/
export function radioTemplate(options: RadioOptions = {}): ElementViewTemplate {
return html`
x.clickHandler(c.event as MouseEvent)}"
@keydown="${(x, c) => x.keydownHandler(c.event as KeyboardEvent)}"
@keyup="${(x, c) => x.keyupHandler(c.event as KeyboardEvent)}"
>
${staticallyCompose(options.checkedIndicator)}
`;
}
/**
* Template for the Radio component
*
* @public
*/
export const template: ElementViewTemplate = radioTemplate({ checkedIndicator });