--- title: 'Button: Examples' parts: - Button - Examples eleventyNavigation: key: 'Button: Examples' order: 30 parent: Button title: Examples --- # Button: Examples ```js script import { html } from '@mdjs/mdjs-preview'; import '@lion/ui/define/lion-button.js'; import iconSvg from './src/icon.svg.js'; ``` ## Icon button ```js preview-story export const iconButton = () => html`${iconSvg(html)}Bug`; ``` ## Icon only button When only an icon is used, make sure the button still have an accessible name, via `aria-label`. ```js preview-story export const iconOnly = () => html`${iconSvg(html)}`; ``` ## Multiple buttons inline ```js preview-story export const mainAndIconButton = () => html` Default ${iconSvg(html)} Bug `; ```