diff --git a/cspell.json b/cspell.json
index 8d1293a94..ccaf8e4f9 100644
--- a/cspell.json
+++ b/cspell.json
@@ -173,6 +173,7 @@
"valpha",
"valuenow",
"valuetext",
+ "Vuejs",
"WCAG",
"webawesome",
"WEBP",
diff --git a/custom-elements-manifest.config.js b/custom-elements-manifest.config.js
index 303f036ed..5f1d028b0 100644
--- a/custom-elements-manifest.config.js
+++ b/custom-elements-manifest.config.js
@@ -1,6 +1,7 @@
import * as path from 'path';
import { customElementJetBrainsPlugin } from 'custom-element-jet-brains-integration';
import { customElementVsCodePlugin } from 'custom-element-vs-code-integration';
+import { customElementVuejsPlugin } from 'custom-element-vuejs-integration';
import { parse } from 'comment-parser';
import { pascalCase } from 'pascal-case';
import commandLineArgs from 'command-line-args';
@@ -218,6 +219,12 @@ export default {
url: `https://shoelace.style/components/${tag.replace('wa-', '')}`
};
}
+ }),
+
+ customElementVuejsPlugin({
+ outdir: './dist/types/vue',
+ fileName: 'index.d.ts',
+ componentTypePath: (_, tag) => `../../components/${tag.replace('wa-', '')}/${tag.replace('wa-', '')}.component.js`
})
]
};
diff --git a/docs/pages/components/button.md b/docs/pages/components/button.md
index f54fd5b83..beb0c413b 100644
--- a/docs/pages/components/button.md
+++ b/docs/pages/components/button.md
@@ -374,7 +374,7 @@ const App = () => (
### Loading
-Use the `loading` attribute to make a button busy. The width will remain the same as before, preventing adjacent elements from moving around. Clicks will be suppressed until the loading state is removed.
+Use the `loading` attribute to make a button busy. The width will remain the same as before, preventing adjacent elements from moving around.
```html:preview
Brand
diff --git a/docs/pages/frameworks/vue.md b/docs/pages/frameworks/vue.md
index 3348eb7d3..56daf4908 100644
--- a/docs/pages/frameworks/vue.md
+++ b/docs/pages/frameworks/vue.md
@@ -35,35 +35,22 @@ If you'd rather not use the CDN for assets, you can create a build task that cop
## Configuration
-You'll need to tell Vue to ignore Web Awesome components. This is pretty easy because they all start with `sl-`.
-
-```js
-import { fileURLToPath, URL } from 'url';
-
-import { defineConfig } from 'vite';
-import vue from '@vitejs/plugin-vue';
-
-// https://vitejs.dev/config/
-export default defineConfig({
- plugins: [
- vue({
- template: {
- compilerOptions: {
- isCustomElement: tag => tag.startsWith('wa-')
- }
- }
- })
- ],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- }
- }
-});
-```
+If you haven't configured your Vue.js project to work with custom elements/web components, follow [the instructions here](https://vuejs.org/guide/extras/web-components.html#using-custom-elements-in-vue) based on your project type to ensure your project will not throw an error when it encounters a custom element.
Now you can start using Web Awesome components in your app!
+## Types
+
+Once you have configured your application for custom elements, you should be able to use Shoelace in your application without it causing any errors. Unfortunately, this doesn't register the custom elements to behave like components built using Vue. To provide autocomplete information and type safety for your components, you can import the Shoelace Vue types into your `tsconfig.json` to get better integration in your standard Vue and JSX templates.
+
+```json
+{
+ "compilerOptions": {
+ "types": ["@shoelace-style/shoelace/dist/types/vue"]
+ }
+}
+```
+
## Usage
### QR code generator example
@@ -126,7 +113,7 @@ Are you using Web Awesome with Vue? [Help us improve this page!](https://github.
### Slots
-To use Web Awesome components with slots, follow the Vue documentation on using [slots with custom elements](https://vuejs.org/guide/extras/web-components.html#building-custom-elements-with-vue).
+Slots in Web Awesome (and web components in general) are functionally the same as basic slots in Vue. Slots can be assigned to elements using the `slot` attribute followed by the name of the slot it is being assigned to.
Here is an example:
diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md
index 46308231a..cc5c39993 100644
--- a/docs/pages/resources/changelog.md
+++ b/docs/pages/resources/changelog.md
@@ -26,12 +26,18 @@ New versions of Web Awesome are released as-needed and generally occur when a cr
## Next
+- Added the `hover-bridge` feature to `` to support better tooltip accessibility [#1734]
+- Added the `loading` attribute and the `spinner` and `spinner__base` part to `` [#1700]
- Fixed files that did not have `.js` extensions. [#1770]
- Fixed `` not accounting for elements with hidden dialog controls like `