diff --git a/docs/src/components/AttributeCard.astro b/docs/src/components/AttributeCard.astro index 5dea76c2..7ad9c783 100644 --- a/docs/src/components/AttributeCard.astro +++ b/docs/src/components/AttributeCard.astro @@ -10,9 +10,10 @@ interface Props { attribute: Attribute; id: string; showCategory?: boolean; + defaultHidden?: boolean; } -const { attribute, id, showCategory = false } = Astro.props; +const { attribute, id, showCategory = false, defaultHidden = false } = Astro.props; const { category } = parseAttributeId(id); const isDeprecated = !!attribute.deprecation; @@ -23,9 +24,16 @@ const rawJson = JSON.stringify(attribute, null, 2);