@m3e/icon-button 1.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +192 -0
  3. package/cem.config.mjs +16 -0
  4. package/demo/index.html +103 -0
  5. package/dist/css-custom-data.json +977 -0
  6. package/dist/custom-elements.json +1291 -0
  7. package/dist/html-custom-data.json +88 -0
  8. package/dist/index.js +1443 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/index.min.js +400 -0
  11. package/dist/index.min.js.map +1 -0
  12. package/dist/src/IconButtonElement.d.ts +316 -0
  13. package/dist/src/IconButtonElement.d.ts.map +1 -0
  14. package/dist/src/IconButtonShape.d.ts +3 -0
  15. package/dist/src/IconButtonShape.d.ts.map +1 -0
  16. package/dist/src/IconButtonSize.d.ts +3 -0
  17. package/dist/src/IconButtonSize.d.ts.map +1 -0
  18. package/dist/src/IconButtonVariant.d.ts +3 -0
  19. package/dist/src/IconButtonVariant.d.ts.map +1 -0
  20. package/dist/src/IconButtonWidth.d.ts +3 -0
  21. package/dist/src/IconButtonWidth.d.ts.map +1 -0
  22. package/dist/src/index.d.ts +6 -0
  23. package/dist/src/index.d.ts.map +1 -0
  24. package/dist/src/styles/IconButtonSizeStyle.d.ts +7 -0
  25. package/dist/src/styles/IconButtonSizeStyle.d.ts.map +1 -0
  26. package/dist/src/styles/IconButtonSizeToken.d.ts +26 -0
  27. package/dist/src/styles/IconButtonSizeToken.d.ts.map +1 -0
  28. package/dist/src/styles/IconButtonStyle.d.ts +7 -0
  29. package/dist/src/styles/IconButtonStyle.d.ts.map +1 -0
  30. package/dist/src/styles/IconButtonVariantStyle.d.ts +7 -0
  31. package/dist/src/styles/IconButtonVariantStyle.d.ts.map +1 -0
  32. package/dist/src/styles/IconButtonVariantToken.d.ts +61 -0
  33. package/dist/src/styles/IconButtonVariantToken.d.ts.map +1 -0
  34. package/dist/src/styles/index.d.ts +4 -0
  35. package/dist/src/styles/index.d.ts.map +1 -0
  36. package/eslint.config.mjs +13 -0
  37. package/package.json +48 -0
  38. package/rollup.config.js +32 -0
  39. package/src/IconButtonElement.ts +514 -0
  40. package/src/IconButtonShape.ts +2 -0
  41. package/src/IconButtonSize.ts +2 -0
  42. package/src/IconButtonVariant.ts +2 -0
  43. package/src/IconButtonWidth.ts +2 -0
  44. package/src/index.ts +5 -0
  45. package/src/styles/IconButtonSizeStyle.ts +95 -0
  46. package/src/styles/IconButtonSizeToken.ts +215 -0
  47. package/src/styles/IconButtonStyle.ts +184 -0
  48. package/src/styles/IconButtonVariantStyle.ts +123 -0
  49. package/src/styles/IconButtonVariantToken.ts +854 -0
  50. package/src/styles/index.ts +3 -0
  51. package/tsconfig.json +9 -0
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 matraic
4
+ Contact: matraic@yahoo.com
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,192 @@
1
+ # @m3e/icon-button
2
+
3
+ The `m3e-icon-button` component is a semantic, expressive UI primitive for triggering actions with a single icon. Designed according to Material Design 3 guidelines, it supports four visual variants, specified using the `variant` attribute—`filled`, `tonal`, `outlined`, and `standard`—each with dynamic elevation, shape morphing, and adaptive color theming. The component responds to interaction states (hover, focus, press, disabled) with smooth motion transitions, ensuring emotional clarity and visual hierarchy.
4
+
5
+ The component is accessible by default, with ARIA roles, contrast-safe color tokens, and strong focus indicators. It supports optional icons and states for binary actions. When using `m3e-icon` for icons, `filled` is automatically set based on the selected state of a toggle button. It can also function as a link or be used to submit form data.
6
+
7
+ Native disabled `<button>` elements cannot receive focus. This can be problematic in some cases because it can prevent you from telling the user why the button is disabled. You can use the `disabled-interactive` attribute to style a `m3e-icon-button` as disabled but allow for it to receive focus. The button will have `aria-disabled="true"` for assistive technology.
8
+
9
+ > **Part of the [M3E](../../README.md) monorepo**
10
+ > This package is maintained within the unified M3E repository, which provides a suite of Material 3 web components.
11
+
12
+ ## 📦 Installation
13
+
14
+ ```bash
15
+ npm install @m3e/icon-button
16
+ ```
17
+
18
+ ## 💻 Editor Integration
19
+
20
+ This package includes a [Custom Elements Manifest](https://github.com/webcomponents/custom-elements-manifest) to support enhanced editor tooling and developer experience.
21
+
22
+ ### Visual Studio Code
23
+
24
+ To enable autocomplete and hover documentation for `@m3e/icon-button`, install the [Custom Elements Manifest Language Server](https://marketplace.visualstudio.com/items?itemName=pwrs.cem-language-server-vscode) extension. It will automatically detect the manifest bundled with this package and surface tag names, attributes, slots, and events in supported files.
25
+
26
+ Alternately, you can explicitly reference the `html-custom-data.json` and `css-custom-data.json` in your workspace settings:
27
+
28
+ ```json
29
+ {
30
+ "html.customData": ["./node_modules/@m3e/icon-button/dist/html-custom-data.json"],
31
+ "css.customData": ["./node_modules/@m3e/icon-button/dist/css-custom-data.json"]
32
+ }
33
+ ```
34
+
35
+ ## 🚀 Browser Usage
36
+
37
+ This package uses [JavaScript Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#module_specifiers). To use it directly in a browser without a bundler, use a module script similar to the following.
38
+
39
+ ```html
40
+ <script type="module" src="/node_modules/@m3e/icon-button/dist/index.js"></script>
41
+ ```
42
+
43
+ In addition, you must use an [import map](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap) to include dependencies.
44
+
45
+ ```html
46
+ <script type="importmap">
47
+ {
48
+ "imports": {
49
+ "lit": "https://cdn.jsdelivr.net/npm/lit@3.3.0/+esm",
50
+ "@m3e/core": "/node_modules/@m3e/core/dist/index.js"
51
+ }
52
+ }
53
+ </script>
54
+ ```
55
+
56
+ > For production, use index.min.js for faster load times.
57
+
58
+ ## 🗂️ Elements
59
+
60
+ - `m3e-icon-button` — An icon button users interact with to perform a supplementary action.
61
+
62
+ ## 🧪 Examples
63
+
64
+ The following example illustrates changing the appearance from `standard` (default) to `filled` using the `variant` attribute,
65
+ changing the size using the `size` attribute, and enabling toggle behavior using the `toggle` attribute.
66
+
67
+ ```html
68
+ <m3e-icon-button variant="filled" size="large" toggle selected>
69
+ <m3e-icon name="favorite"></m3e-icon>
70
+ </m3e-icon-button>
71
+ ```
72
+
73
+ ## 📖 API Reference
74
+
75
+ This section details the attributes, slots and CSS custom properties available for the `m3e-icon-button` component.
76
+
77
+ ### ⚙️ Attributes
78
+
79
+ | Attribute | Type | Default | Description |
80
+ | ---------------------- | ------------------------------------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
81
+ | `variant` | `"standard" \| "outlined" \| "filled" \| "tonal"` | `"standard"` | The appearance variant of the button. |
82
+ | `shape` | `"rounded" \| "square"` | `"rounded"` | The shape of the button. |
83
+ | `size` | `"extra-small" \| "small" \| "medium" \| "large"` | `"small"` | The size of the button. |
84
+ | `width` | `"narrow" \| "default" \| "wide"` | `"default"` | The width of the button. |
85
+ | `toggle` | `boolean` | `false` | Whether the button will toggle between selected and unselected states. |
86
+ | `selected` | `boolean` | `false` | Whether the toggle button is selected. |
87
+ | `disabled` | `boolean` | `false` | Whether the element is disabled. |
88
+ | `disabled-interactive` | `boolean` | `false` | Whether the element is disabled and interactive. |
89
+ | `type` | `"button" \| "submit" \| "reset"` | `"button"` | The type of the element. |
90
+ | `name` | `string` | | The name of the element, submitted as a pair with the element's value as part of form data, when the element is used to submit a form. |
91
+ | `value` | `string` | | The value associated with the element's name when it's submitted with form data. |
92
+ | `href` | `string` | | The URL to which the link button points. |
93
+ | `target` | `string` | | The target of the link button. |
94
+ | `rel` | `string` | | The relationship between the target of the link button and the document. |
95
+ | `download` | `string` | | A value indicating whether the target of the link button will be downloaded, optionally specifying the new name of the file. |
96
+
97
+ ### 🧩 Slots
98
+
99
+ | Slot | Description |
100
+ | ----------- | --------------------------------------- |
101
+ | _(default)_ | Renders the icon of the button. |
102
+ | `selected` | Renders an icon when selected (toggle). |
103
+
104
+ ### 🎛️ CSS Custom Properties
105
+
106
+ #### 🧱 Size Properties
107
+
108
+ All size variants (`extra-small`, `small`, `medium`, `large`, `extra-large`) support:
109
+
110
+ | Property | Description |
111
+ | ------------------------------------------------- | ------------------------------------ |
112
+ | `--m3e-icon-button-[size]-container-height` | Height of the button container |
113
+ | `--m3e-icon-button-[size]-outline-thickness` | Outline thickness |
114
+ | `--m3e-icon-button-[size]-icon-size` | Icon size |
115
+ | `--m3e-icon-button-[size]-shape-round` | Corner radius for round shape |
116
+ | `--m3e-icon-button-[size]-shape-square` | Corner radius for square shape |
117
+ | `--m3e-icon-button-[size]-selected-shape-round` | Corner radius when selected (round) |
118
+ | `--m3e-icon-button-[size]-selected-shape-square` | Corner radius when selected (square) |
119
+ | `--m3e-icon-button-[size]-shape-pressed-morph` | Corner radius when pressed |
120
+ | `--m3e-icon-button-[size]-narrow-leading-space` | Space before icon (narrow width) |
121
+ | `--m3e-icon-button-[size]-narrow-trailing-space` | Space after icon (narrow width) |
122
+ | `--m3e-icon-button-[size]-default-leading-space` | Space before icon (default width) |
123
+ | `--m3e-icon-button-[size]-default-trailing-space` | Space after icon (default width) |
124
+ | `--m3e-icon-button-[size]-wide-leading-space` | Space before icon (wide width) |
125
+ | `--m3e-icon-button-[size]-wide-trailing-space` | Space after icon (wide width) |
126
+
127
+ #### 🎨 Appearance Variant Properties
128
+
129
+ All appearance variants (`standard`, `outlined`, `filled`, `tonal`) support the following properties (replace `[variant]` with the variant name):
130
+
131
+ | Property | Description |
132
+ | --------------------------------------------- | ----------------------------- |
133
+ | `--m3e-[variant]-icon-button-icon-color` | Icon color |
134
+ | `--m3e-[variant]-icon-button-container-color` | Container background color |
135
+ | `--m3e-[variant]-icon-button-outline-color` | Outline color (outlined only) |
136
+
137
+ #### 🟫 State Properties
138
+
139
+ Each variant supports state properties for disabled, hover, focus, pressed, selected, and unselected. For each variant, the following properties are available (replace `[variant]` with the variant name):
140
+
141
+ | Property | Description |
142
+ | ------------------------------------------------------------------ | -------------------------------------- |
143
+ | `--m3e-[variant]-icon-button-disabled-container-color` | Container color when disabled |
144
+ | `--m3e-[variant]-icon-button-disabled-container-opacity` | Container opacity when disabled |
145
+ | `--m3e-[variant]-icon-button-disabled-icon-color` | Icon color when disabled |
146
+ | `--m3e-[variant]-icon-button-disabled-icon-opacity` | Icon opacity when disabled |
147
+ | `--m3e-[variant]-icon-button-disabled-outline-color` | Outline color when disabled (outlined) |
148
+ | `--m3e-[variant]-icon-button-hover-icon-color` | Icon color on hover |
149
+ | `--m3e-[variant]-icon-button-hover-outline-color` | Outline color on hover (outlined) |
150
+ | `--m3e-[variant]-icon-button-hover-state-layer-color` | State layer color on hover |
151
+ | `--m3e-[variant]-icon-button-hover-state-layer-opacity` | State layer opacity on hover |
152
+ | `--m3e-[variant]-icon-button-hover-unselected-icon-color` | Unselected icon color on hover |
153
+ | `--m3e-[variant]-icon-button-hover-unselected-state-layer-color` | Unselected state layer color on hover |
154
+ | `--m3e-[variant]-icon-button-hover-selected-icon-color` | Selected icon color on hover |
155
+ | `--m3e-[variant]-icon-button-hover-selected-state-layer-color` | Selected state layer color on hover |
156
+ | `--m3e-[variant]-icon-button-focus-icon-color` | Icon color on focus |
157
+ | `--m3e-[variant]-icon-button-focus-outline-color` | Outline color on focus (outlined) |
158
+ | `--m3e-[variant]-icon-button-focus-state-layer-color` | State layer color on focus |
159
+ | `--m3e-[variant]-icon-button-focus-state-layer-opacity` | State layer opacity on focus |
160
+ | `--m3e-[variant]-icon-button-focus-unselected-icon-color` | Unselected icon color on focus |
161
+ | `--m3e-[variant]-icon-button-focus-unselected-state-layer-color` | Unselected state layer color on focus |
162
+ | `--m3e-[variant]-icon-button-focus-selected-icon-color` | Selected icon color on focus |
163
+ | `--m3e-[variant]-icon-button-focus-selected-state-layer-color` | Selected state layer color on focus |
164
+ | `--m3e-[variant]-icon-button-pressed-icon-color` | Icon color on press |
165
+ | `--m3e-[variant]-icon-button-pressed-outline-color` | Outline color on press (outlined) |
166
+ | `--m3e-[variant]-icon-button-pressed-state-layer-color` | State layer color on press |
167
+ | `--m3e-[variant]-icon-button-pressed-state-layer-opacity` | State layer opacity on press |
168
+ | `--m3e-[variant]-icon-button-pressed-unselected-icon-color` | Unselected icon color on press |
169
+ | `--m3e-[variant]-icon-button-pressed-unselected-state-layer-color` | Unselected state layer color on press |
170
+ | `--m3e-[variant]-icon-button-pressed-selected-icon-color` | Selected icon color on press |
171
+ | `--m3e-[variant]-icon-button-pressed-selected-state-layer-color` | Selected state layer color on press |
172
+
173
+ #### 🟦 Selected/Unselected State Properties
174
+
175
+ For toggle buttons, each variant supports selected/unselected state properties:
176
+
177
+ | Property | Description |
178
+ | ---------------------------------------------------------- | --------------------------------- |
179
+ | `--m3e-[variant]-icon-button-selected-icon-color` | Icon color when selected |
180
+ | `--m3e-[variant]-icon-button-selected-container-color` | Container color when selected |
181
+ | `--m3e-[variant]-icon-button-selected-state-layer-color` | State layer color when selected |
182
+ | `--m3e-[variant]-icon-button-unselected-icon-color` | Icon color when unselected |
183
+ | `--m3e-[variant]-icon-button-unselected-container-color` | Container color when unselected |
184
+ | `--m3e-[variant]-icon-button-unselected-state-layer-color` | State layer color when unselected |
185
+
186
+ ## 🤝 Contributing
187
+
188
+ See the root monorepo `CONTRIBUTING.md` for guidelines on contributing to this package.
189
+
190
+ ## 📄 License
191
+
192
+ This package is licensed under the MIT License.
package/cem.config.mjs ADDED
@@ -0,0 +1,16 @@
1
+ import { customElementVsCodePlugin } from "custom-element-vs-code-integration";
2
+
3
+ export default {
4
+ globs: ["src/**/*.ts"],
5
+ exclude: ["src/**/*.spec.ts"],
6
+ packagejson: true,
7
+ outdir: "dist",
8
+ litelement: true,
9
+ plugins: [
10
+ customElementVsCodePlugin({
11
+ outdir: "dist",
12
+ htmlFileName: "html-custom-data.json",
13
+ cssFileName: "css-custom-data.json",
14
+ }),
15
+ ],
16
+ };
@@ -0,0 +1,103 @@
1
+ <!doctype html>
2
+ <html lang="en" style="overflow-y: auto">
3
+ <head>
4
+ <title>Icon Button for M3E</title>
5
+ <meta charset="utf-8" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ <meta name="description" content="Icon Button for M3E" />
8
+ <base href="./" />
9
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
10
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
11
+ <link
12
+ href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"
13
+ rel="stylesheet"
14
+ />
15
+ <link
16
+ href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0..1,0"
17
+ rel="stylesheet"
18
+ />
19
+ <script type="importmap">
20
+ {
21
+ "imports": {
22
+ "lit": "https://cdn.jsdelivr.net/npm/lit@3.3.0/+esm",
23
+ "@m3e/core": "../../core/dist/index.min.js"
24
+ }
25
+ }
26
+ </script>
27
+ <script type="module" src="../../icon/dist/index.min.js"></script>
28
+ <script type="module" src="../../theme/dist/index.min.js"></script>
29
+ <script type="module" src="../dist/index.min.js"></script>
30
+ <style>
31
+ body {
32
+ font-family: "Roboto";
33
+ }
34
+ *:not(:defined) {
35
+ display: none;
36
+ }
37
+ </style>
38
+ </head>
39
+ <body>
40
+ <m3e-theme strong-focus>
41
+ <m3e-icon-button variant="filled"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
42
+ <m3e-icon-button variant="tonal"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
43
+ <m3e-icon-button variant="outlined"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
44
+ <m3e-icon-button variant="standard"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
45
+ <br /><br />
46
+ <m3e-icon-button variant="filled" disabled-interactive><m3e-icon name="home"></m3e-icon></m3e-icon-button>
47
+ <m3e-icon-button variant="tonal" disabled-interactive><m3e-icon name="home"></m3e-icon></m3e-icon-button>
48
+ <m3e-icon-button variant="outlined" disabled-interactive><m3e-icon name="home"></m3e-icon></m3e-icon-button>
49
+ <m3e-icon-button variant="standard" disabled-interactive><m3e-icon name="home"></m3e-icon></m3e-icon-button>
50
+ <br /><br />
51
+ <m3e-icon-button variant="filled" disabled><m3e-icon name="home"></m3e-icon></m3e-icon-button>
52
+ <m3e-icon-button variant="tonal" disabled><m3e-icon name="home"></m3e-icon></m3e-icon-button>
53
+ <m3e-icon-button variant="outlined" disabled><m3e-icon name="home"></m3e-icon></m3e-icon-button>
54
+ <m3e-icon-button variant="standard" disabled><m3e-icon name="home"></m3e-icon></m3e-icon-button>
55
+ <br /><br />
56
+ <m3e-icon-button variant="filled" size="extra-small"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
57
+ <m3e-icon-button variant="filled" size="small"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
58
+ <m3e-icon-button variant="filled" size="medium"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
59
+ <br /><br />
60
+ <m3e-icon-button variant="filled" size="large"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
61
+ <m3e-icon-button variant="filled" size="extra-large"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
62
+ <br /><br />
63
+ <m3e-icon-button variant="filled" size="extra-small" shape="square">
64
+ <m3e-icon name="home"></m3e-icon>
65
+ </m3e-icon-button>
66
+ <m3e-icon-button variant="filled" size="small" shape="square"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
67
+ <m3e-icon-button variant="filled" size="medium" shape="square"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
68
+ <br /><br />
69
+ <m3e-icon-button variant="filled" size="large" shape="square"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
70
+ <m3e-icon-button variant="filled" size="extra-large" shape="square">
71
+ <m3e-icon name="home"></m3e-icon>
72
+ </m3e-icon-button>
73
+ <br /><br />
74
+ <m3e-icon-button variant="filled" toggle><m3e-icon name="home"></m3e-icon></m3e-icon-button>
75
+ <m3e-icon-button variant="tonal" toggle><m3e-icon name="home"></m3e-icon></m3e-icon-button>
76
+ <m3e-icon-button variant="outlined" toggle><m3e-icon name="home"></m3e-icon></m3e-icon-button>
77
+ <m3e-icon-button variant="standard" toggle><m3e-icon name="home"></m3e-icon></m3e-icon-button>
78
+ <br /><br />
79
+ <m3e-icon-button variant="filled" toggle disabled><m3e-icon name="home"></m3e-icon></m3e-icon-button>
80
+ <m3e-icon-button variant="tonal" toggle disabled><m3e-icon name="home"></m3e-icon></m3e-icon-button>
81
+ <m3e-icon-button variant="outlined" toggle disabled><m3e-icon name="home"></m3e-icon></m3e-icon-button>
82
+ <m3e-icon-button variant="standard" toggle disabled><m3e-icon name="home"></m3e-icon></m3e-icon-button>
83
+ <br /><br />
84
+ <m3e-icon-button variant="filled" toggle disabled-interactive><m3e-icon name="home"></m3e-icon></m3e-icon-button>
85
+ <m3e-icon-button variant="tonal" toggle disabled-interactive><m3e-icon name="home"></m3e-icon></m3e-icon-button>
86
+ <m3e-icon-button variant="outlined" toggle disabled-interactive>
87
+ <m3e-icon name="home"></m3e-icon>
88
+ </m3e-icon-button>
89
+ <m3e-icon-button variant="standard" toggle disabled-interactive>
90
+ <m3e-icon name="home"></m3e-icon>
91
+ </m3e-icon-button>
92
+ <br /><br />
93
+ <m3e-icon-button variant="filled" toggle shape="square"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
94
+ <m3e-icon-button variant="tonal" toggle shape="square"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
95
+ <m3e-icon-button variant="outlined" toggle shape="square"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
96
+ <m3e-icon-button variant="standard" toggle shape="square"><m3e-icon name="home"></m3e-icon></m3e-icon-button>
97
+ <br /><br />
98
+ <m3e-icon-button href="https://m3.material.io/components/icon-buttons/overview" target="_blank" variant="filled">
99
+ <m3e-icon name="home"></m3e-icon>
100
+ </m3e-icon-button>
101
+ </m3e-theme>
102
+ </body>
103
+ </html>