({
onClick: action('clicked'),
}
});
+
+export const IconOnly = () => ({
+ template: hbs`
+ Icon-only buttons visually hide their text, revealing just an icon.
+ It's still important to include meaningful text in the body of the
+ button for accessibility purposes.
+
+
+ {{text}}
+
+ `,
+ context: {
+ text: text('text', 'Button'),
+ iconOnly: select('iconOnly', icons, 'copy-action'),
+ }
+});