diff --git a/docs/assets/plugins/metadata/metadata.js b/docs/assets/plugins/metadata/metadata.js index 12baaf2c..90e6c4b2 100644 --- a/docs/assets/plugins/metadata/metadata.js +++ b/docs/assets/plugins/metadata/metadata.js @@ -110,7 +110,7 @@ .map( method => `
${escapeHtml(method.name)}${escapeHtml(method.name)}()$1');
}
@@ -484,12 +485,21 @@
`;
}
+ if (component.slots?.length) {
+ result += `
+ ## Slots
+ ${createSlotsTable(component.slots)}
+
+ _Learn more about [using slots](/getting-started/usage#slots)._
+ `;
+ }
+
if (props?.length) {
result += `
- ## Properties
+ ## Attributes & Properties
${createPropsTable(props)}
- _Learn more about [properties and attributes](/getting-started/usage#properties)._
+ _Learn more about [attributes and properties](/getting-started/usage#properties)._
`;
}
@@ -512,15 +522,6 @@
`;
}
- if (component.slots?.length) {
- result += `
- ## Slots
- ${createSlotsTable(component.slots)}
-
- _Learn more about [using slots](/getting-started/usage#slots)._
- `;
- }
-
if (component.cssProperties?.length) {
result += `
## CSS Custom Properties