@m3e/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.
- package/LICENSE +22 -0
- package/README.md +193 -0
- package/cem.config.mjs +16 -0
- package/demo/index.html +105 -0
- package/dist/css-custom-data.json +1582 -0
- package/dist/custom-elements.json +1753 -0
- package/dist/html-custom-data.json +83 -0
- package/dist/index.js +1781 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +468 -0
- package/dist/index.min.js.map +1 -0
- package/dist/src/ButtonElement.d.ts +429 -0
- package/dist/src/ButtonElement.d.ts.map +1 -0
- package/dist/src/ButtonShape.d.ts +3 -0
- package/dist/src/ButtonShape.d.ts.map +1 -0
- package/dist/src/ButtonSize.d.ts +3 -0
- package/dist/src/ButtonSize.d.ts.map +1 -0
- package/dist/src/ButtonVariant.d.ts +3 -0
- package/dist/src/ButtonVariant.d.ts.map +1 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/styles/ButtonSizeStyle.d.ts +7 -0
- package/dist/src/styles/ButtonSizeStyle.d.ts.map +1 -0
- package/dist/src/styles/ButtonSizeToken.d.ts +27 -0
- package/dist/src/styles/ButtonSizeToken.d.ts.map +1 -0
- package/dist/src/styles/ButtonStyle.d.ts +7 -0
- package/dist/src/styles/ButtonStyle.d.ts.map +1 -0
- package/dist/src/styles/ButtonVariantStyle.d.ts +7 -0
- package/dist/src/styles/ButtonVariantStyle.d.ts.map +1 -0
- package/dist/src/styles/ButtonVariantToken.d.ts +75 -0
- package/dist/src/styles/ButtonVariantToken.d.ts.map +1 -0
- package/dist/src/styles/index.d.ts +4 -0
- package/dist/src/styles/index.d.ts.map +1 -0
- package/eslint.config.mjs +13 -0
- package/package.json +48 -0
- package/rollup.config.js +32 -0
- package/src/ButtonElement.ts +629 -0
- package/src/ButtonShape.ts +2 -0
- package/src/ButtonSize.ts +2 -0
- package/src/ButtonVariant.ts +2 -0
- package/src/index.ts +4 -0
- package/src/styles/ButtonSizeStyle.ts +102 -0
- package/src/styles/ButtonSizeToken.ts +180 -0
- package/src/styles/ButtonStyle.ts +191 -0
- package/src/styles/ButtonVariantStyle.ts +170 -0
- package/src/styles/ButtonVariantToken.ts +1165 -0
- package/src/styles/index.ts +3 -0
- 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,193 @@
|
|
|
1
|
+
# @m3e/button
|
|
2
|
+
|
|
3
|
+
The `m3e-button` component is a semantic, expressive UI primitive users interact with to perform an action. Designed according to Material Design 3 guidelines, it supports five visual variants, specified using the `variant` attribute—`filled`, `tonal`, `elevated`, `outlined`, and `text`—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-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/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/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/button/dist/html-custom-data.json"],
|
|
31
|
+
"css.customData": ["./node_modules/@m3e/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/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-button` — A button users interact with to perform an action.
|
|
61
|
+
|
|
62
|
+
## 🧪 Examples
|
|
63
|
+
|
|
64
|
+
The following example illustrates changing the appearance from `text` (default) to `tonal` using the `variant` attribute.
|
|
65
|
+
|
|
66
|
+
```html
|
|
67
|
+
<m3e-button variant="tonal">Tonal Button</m3e-button>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## 📖 API Reference
|
|
71
|
+
|
|
72
|
+
This section details the attributes, slots and CSS custom properties available for the `m3e-button` component.
|
|
73
|
+
|
|
74
|
+
### ⚙️ Attributes
|
|
75
|
+
|
|
76
|
+
| Attribute | Type | Default | Description |
|
|
77
|
+
| ---------------------- | ------------------------------------------------------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
78
|
+
| `variant` | `"elevated" \| "filled" \| "tonal" \| "outlined" \| "text"` | `"text"` | The appearance variant of the button. |
|
|
79
|
+
| `shape` | `"rounded" \| "square"` | `"rounded"` | The shape of the button. |
|
|
80
|
+
| `size` | `"extra-small" \| "small" \| "medium" \| "large" \| "extra-large"` | `"small"` | The size of the button. |
|
|
81
|
+
| `toggle` | `boolean` | `false` | Whether the button will toggle between selected and unselected states. |
|
|
82
|
+
| `selected` | `boolean` | `false` | Whether the toggle button is selected. |
|
|
83
|
+
| `disabled` | `boolean` | `false` | Whether the element is disabled. |
|
|
84
|
+
| `disabled-interactive` | `boolean` | `false` | Whether the element is disabled and interactive. |
|
|
85
|
+
| `type` | `"button" \| "submit" \| "reset"` | `"button"` | The type of the element. |
|
|
86
|
+
| `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. |
|
|
87
|
+
| `value` | `string` | | The value associated with the element's name when it's submitted with form data. |
|
|
88
|
+
| `href` | `string` | | The URL to which the link button points. |
|
|
89
|
+
| `target` | `string` | | The target of the link button. |
|
|
90
|
+
| `rel` | `string` | | The relationship between the target of the link button and the document. |
|
|
91
|
+
| `download` | `string` | | A value indicating whether the target of the link button will be downloaded, optionally specifying the new name of the file. |
|
|
92
|
+
|
|
93
|
+
### 🧩 Slots
|
|
94
|
+
|
|
95
|
+
| Slot | Description |
|
|
96
|
+
| --------------- | --------------------------------------------- |
|
|
97
|
+
| _(default)_ | Renders button label/content. |
|
|
98
|
+
| `icon` | Renders leading icon before label. |
|
|
99
|
+
| `trailing-icon` | Renders trailing icon after label. |
|
|
100
|
+
| `selected` | Renders label when toggle button is selected. |
|
|
101
|
+
| `selected-icon` | Renders icon before label when selected. |
|
|
102
|
+
|
|
103
|
+
### 🎛️ CSS Custom Properties
|
|
104
|
+
|
|
105
|
+
#### 🧱 Size Properties
|
|
106
|
+
|
|
107
|
+
All size variants (`extra-small`, `small`, `medium`, `large`, `extra-large`) support:
|
|
108
|
+
|
|
109
|
+
| Property | Description |
|
|
110
|
+
| -------------------------------------------- | ------------------------------------ |
|
|
111
|
+
| `--m3e-button-[size]-container-height` | Height of the button container |
|
|
112
|
+
| `--m3e-button-[size]-outline-thickness` | Outline thickness |
|
|
113
|
+
| `--m3e-button-[size]-label-text-font-size` | Font size for label |
|
|
114
|
+
| `--m3e-button-[size]-label-text-font-weight` | Font weight for label |
|
|
115
|
+
| `--m3e-button-[size]-label-text-line-height` | Line height for label |
|
|
116
|
+
| `--m3e-button-[size]-label-text-tracking` | Letter tracking for label |
|
|
117
|
+
| `--m3e-button-[size]-icon-size` | Icon size |
|
|
118
|
+
| `--m3e-button-[size]-shape-round` | Corner radius for round shape |
|
|
119
|
+
| `--m3e-button-[size]-shape-square` | Corner radius for square shape |
|
|
120
|
+
| `--m3e-button-[size]-selected-shape-round` | Corner radius when selected (round) |
|
|
121
|
+
| `--m3e-button-[size]-selected-shape-square` | Corner radius when selected (square) |
|
|
122
|
+
| `--m3e-button-[size]-shape-pressed-morph` | Corner radius when pressed |
|
|
123
|
+
| `--m3e-button-[size]-leading-space` | Space before icon/label |
|
|
124
|
+
| `--m3e-button-[size]-trailing-space` | Space after icon/label |
|
|
125
|
+
| `--m3e-button-[size]-icon-label-space` | Space between icon and label |
|
|
126
|
+
|
|
127
|
+
#### 🎨 Appearance Variant Properties
|
|
128
|
+
|
|
129
|
+
All appearance variants (`filled`, `tonal`, `elevated`, `outlined`, `text`) support the following properties (replace `[variant]` with the variant name):
|
|
130
|
+
|
|
131
|
+
| Property | Description |
|
|
132
|
+
| -------------------------------------------- | --------------------------------- |
|
|
133
|
+
| `--m3e-[variant]-button-label-text-color` | Label color |
|
|
134
|
+
| `--m3e-[variant]-button-icon-color` | Icon color |
|
|
135
|
+
| `--m3e-[variant]-button-container-color` | Container background color |
|
|
136
|
+
| `--m3e-[variant]-button-container-elevation` | Elevation |
|
|
137
|
+
| `--m3e-[variant]-button-outline-color` | Outline color (outlined only) |
|
|
138
|
+
| `--m3e-[variant]-button-outline-thickness` | Outline thickness (outlined only) |
|
|
139
|
+
|
|
140
|
+
#### 🟫 State Properties
|
|
141
|
+
|
|
142
|
+
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):
|
|
143
|
+
|
|
144
|
+
| Property | Description |
|
|
145
|
+
| ----------------------------------------------------- | -------------------------------------- |
|
|
146
|
+
| `--m3e-[variant]-button-disabled-label-text-color` | Label color when disabled |
|
|
147
|
+
| `--m3e-[variant]-button-disabled-label-text-opacity` | Label opacity when disabled |
|
|
148
|
+
| `--m3e-[variant]-button-disabled-icon-color` | Icon color when disabled |
|
|
149
|
+
| `--m3e-[variant]-button-disabled-icon-opacity` | Icon opacity when disabled |
|
|
150
|
+
| `--m3e-[variant]-button-disabled-container-color` | Container color when disabled |
|
|
151
|
+
| `--m3e-[variant]-button-disabled-container-opacity` | Container opacity when disabled |
|
|
152
|
+
| `--m3e-[variant]-button-disabled-container-elevation` | Elevation when disabled |
|
|
153
|
+
| `--m3e-[variant]-button-hover-label-text-color` | Label color on hover |
|
|
154
|
+
| `--m3e-[variant]-button-hover-icon-color` | Icon color on hover |
|
|
155
|
+
| `--m3e-[variant]-button-hover-state-layer-color` | State layer color on hover |
|
|
156
|
+
| `--m3e-[variant]-button-hover-state-layer-opacity` | State layer opacity on hover |
|
|
157
|
+
| `--m3e-[variant]-button-hover-container-elevation` | Elevation on hover |
|
|
158
|
+
| `--m3e-[variant]-button-hover-outline-color` | Outline color on hover (outlined only) |
|
|
159
|
+
| `--m3e-[variant]-button-focus-label-text-color` | Label color on focus |
|
|
160
|
+
| `--m3e-[variant]-button-focus-icon-color` | Icon color on focus |
|
|
161
|
+
| `--m3e-[variant]-button-focus-state-layer-color` | State layer color on focus |
|
|
162
|
+
| `--m3e-[variant]-button-focus-state-layer-opacity` | State layer opacity on focus |
|
|
163
|
+
| `--m3e-[variant]-button-focus-container-elevation` | Elevation on focus |
|
|
164
|
+
| `--m3e-[variant]-button-focus-outline-color` | Outline color on focus (outlined only) |
|
|
165
|
+
| `--m3e-[variant]-button-pressed-label-text-color` | Label color on press |
|
|
166
|
+
| `--m3e-[variant]-button-pressed-icon-color` | Icon color on press |
|
|
167
|
+
| `--m3e-[variant]-button-pressed-state-layer-color` | State layer color on press |
|
|
168
|
+
| `--m3e-[variant]-button-pressed-state-layer-opacity` | State layer opacity on press |
|
|
169
|
+
| `--m3e-[variant]-button-pressed-container-elevation` | Elevation on press |
|
|
170
|
+
| `--m3e-[variant]-button-pressed-outline-color` | Outline color on press (outlined only) |
|
|
171
|
+
|
|
172
|
+
#### 🟦 Selected/Unselected State Properties
|
|
173
|
+
|
|
174
|
+
For toggle buttons, each variant supports selected/unselected state properties:
|
|
175
|
+
|
|
176
|
+
| Property | Description |
|
|
177
|
+
| ----------------------------------------------------- | --------------------------------- |
|
|
178
|
+
| `--m3e-[variant]-button-selected-label-text-color` | Label color when selected |
|
|
179
|
+
| `--m3e-[variant]-button-selected-icon-color` | Icon color when selected |
|
|
180
|
+
| `--m3e-[variant]-button-selected-container-color` | Container color when selected |
|
|
181
|
+
| `--m3e-[variant]-button-selected-state-layer-color` | State layer color when selected |
|
|
182
|
+
| `--m3e-[variant]-button-unselected-label-text-color` | Label color when unselected |
|
|
183
|
+
| `--m3e-[variant]-button-unselected-icon-color` | Icon color when unselected |
|
|
184
|
+
| `--m3e-[variant]-button-unselected-container-color` | Container color when unselected |
|
|
185
|
+
| `--m3e-[variant]-button-unselected-state-layer-color` | State layer color when unselected |
|
|
186
|
+
|
|
187
|
+
## 🤝 Contributing
|
|
188
|
+
|
|
189
|
+
See the root monorepo `CONTRIBUTING.md` for guidelines on contributing to this package.
|
|
190
|
+
|
|
191
|
+
## 📄 License
|
|
192
|
+
|
|
193
|
+
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
|
+
};
|
package/demo/index.html
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" style="overflow-y: auto">
|
|
3
|
+
<head>
|
|
4
|
+
<title>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="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-button variant="filled">Filled Button</m3e-button>
|
|
42
|
+
<m3e-button variant="tonal">Tonal Button</m3e-button>
|
|
43
|
+
<m3e-button variant="elevated">Elevated Button</m3e-button>
|
|
44
|
+
<m3e-button variant="outlined">Outlined Button</m3e-button>
|
|
45
|
+
<m3e-button>Text Button</m3e-button>
|
|
46
|
+
<br /><br />
|
|
47
|
+
<m3e-button variant="filled" disabled-interactive>Filled Button</m3e-button>
|
|
48
|
+
<m3e-button variant="tonal" disabled-interactive>Tonal Button</m3e-button>
|
|
49
|
+
<m3e-button variant="elevated" disabled-interactive>Elevated Button</m3e-button>
|
|
50
|
+
<m3e-button variant="outlined" disabled-interactive>Outlined Button</m3e-button>
|
|
51
|
+
<m3e-button disabled-interactive>Text Button</m3e-button>
|
|
52
|
+
<br /><br />
|
|
53
|
+
<m3e-button variant="filled" disabled>Filled Button</m3e-button>
|
|
54
|
+
<m3e-button variant="tonal" disabled>Tonal Button</m3e-button>
|
|
55
|
+
<m3e-button variant="elevated" disabled>Elevated Button</m3e-button>
|
|
56
|
+
<m3e-button variant="outlined" disabled>Outlined Button</m3e-button>
|
|
57
|
+
<m3e-button disabled>Text Button</m3e-button>
|
|
58
|
+
<br /><br />
|
|
59
|
+
<m3e-button variant="filled">
|
|
60
|
+
<m3e-icon name="face" slot="icon"></m3e-icon>
|
|
61
|
+
Button w/ Leading Icon
|
|
62
|
+
</m3e-button>
|
|
63
|
+
<m3e-button variant="filled">
|
|
64
|
+
Button w/ Trailing Icon
|
|
65
|
+
<m3e-icon name="face" slot="trailing-icon"></m3e-icon>
|
|
66
|
+
</m3e-button>
|
|
67
|
+
<br /><br />
|
|
68
|
+
<m3e-button variant="filled" size="extra-small">Extra Small Rounded Button</m3e-button>
|
|
69
|
+
<m3e-button variant="filled" size="small">Small Rounded Button</m3e-button>
|
|
70
|
+
<m3e-button variant="filled" size="medium">Medium Rounded Button</m3e-button>
|
|
71
|
+
<br /><br />
|
|
72
|
+
<m3e-button variant="filled" size="large">Large Rounded Button</m3e-button>
|
|
73
|
+
<m3e-button variant="filled" size="extra-large">Extra Large Rounded Button</m3e-button>
|
|
74
|
+
<br /><br />
|
|
75
|
+
<m3e-button variant="filled" size="extra-small" shape="square">Extra Small Square Button</m3e-button>
|
|
76
|
+
<m3e-button variant="filled" size="small" shape="square">Small Square Button</m3e-button>
|
|
77
|
+
<m3e-button variant="filled" size="medium" shape="square">Medium Square Button</m3e-button>
|
|
78
|
+
<br /><br />
|
|
79
|
+
<m3e-button variant="filled" size="large" shape="square">Large Square Button</m3e-button>
|
|
80
|
+
<m3e-button variant="filled" size="extra-large" shape="square">Extra Large Square Button</m3e-button>
|
|
81
|
+
<br /><br />
|
|
82
|
+
<m3e-button variant="filled" toggle>Filled Round Toggle</m3e-button>
|
|
83
|
+
<m3e-button variant="tonal" toggle>Tonal Round Toggle</m3e-button>
|
|
84
|
+
<m3e-button variant="elevated" toggle>Elevated Round Toggle</m3e-button>
|
|
85
|
+
<m3e-button variant="outlined" toggle>Outlined Round Toggle</m3e-button>
|
|
86
|
+
<br /><br />
|
|
87
|
+
<m3e-button variant="filled" toggle disabled>Disabled filled Round Toggle</m3e-button>
|
|
88
|
+
<m3e-button variant="tonal" toggle disabled>Disabled tonal Round Toggle</m3e-button>
|
|
89
|
+
<m3e-button variant="elevated" toggle disabled>Disabled elevated Round Toggle</m3e-button>
|
|
90
|
+
<m3e-button variant="outlined" toggle disabled>Disabled outlined Round Toggle</m3e-button>
|
|
91
|
+
<br /><br />
|
|
92
|
+
<m3e-button variant="filled" toggle disabled-interactive>Disabled interactive filled Round Toggle</m3e-button>
|
|
93
|
+
<m3e-button variant="tonal" toggle disabled-interactive>Disabled interactive tonal Round Toggle</m3e-button>
|
|
94
|
+
<m3e-button variant="elevated" toggle disabled-interactive>Disabled interactive elevated Round Toggle</m3e-button>
|
|
95
|
+
<m3e-button variant="outlined" toggle disabled-interactive>Disabled interactive outlined Round Toggle</m3e-button>
|
|
96
|
+
<br /><br />
|
|
97
|
+
<m3e-button variant="filled" toggle shape="square">Filled Square Toggle</m3e-button>
|
|
98
|
+
<m3e-button variant="tonal" toggle shape="square">Tonal Square Toggle</m3e-button>
|
|
99
|
+
<m3e-button variant="elevated" toggle shape="square">Elevated Square Toggle</m3e-button>
|
|
100
|
+
<m3e-button variant="outlined" toggle shape="square">Outlined Square Toggle</m3e-button>
|
|
101
|
+
<br /><br />
|
|
102
|
+
<m3e-button href="https://m3.material.io/components/buttons/overview" target="_blank">Link Button</m3e-button>
|
|
103
|
+
</m3e-theme>
|
|
104
|
+
</body>
|
|
105
|
+
</html>
|