Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/gossi/ember-command. Integrate your Business Logic with Ember gossi.github.io/ember-command
Something went wrong. Try again.
466 B · 19 lines
at main
1234567891011121314151617181920import { type CommandAction, CommandElement } from 'ember-command';
import type { TOC } from '@ember/component/template-only';
interface ButtonSignature { Element: HTMLButtonElement | HTMLSpanElement | HTMLAnchorElement; Args: { push: CommandAction }; Blocks: { default: []; };}
const Button: TOC<ButtonSignature> = <template> <CommandElement @command={{@push}} ...attributes> {{yield}} </CommandElement></template>;
export default Button;