{% set hasSidebar = true %}
{% set hasOutline = true %}
{% set component = getComponent('wa-' + page.fileSlug) %}
{% set description = component.summary %}
{% extends '../_includes/base.njk' %}
{# Component header #}
{% block beforeContent %}
{{ title }}
<{{ component.tagName }}>
Since {{ component.since }}
{{ component.status }}
{{ component.summary }}
{% endblock %}
{# Content #}
{% block content %}
{{ content | safe }}
{% endblock %}
{# Component API #}
{% block afterContent %}
{# Slots #}
{% if component.slots.length %}
Slots
{% endif %}
{# Properties #}
{% if component.properties.length %}
Properties
{% endif %}
{# Methods #}
{% if component.methods.length %}
Methods
{% endif %}
{# States #}
{% if component.states.length %}
States
{% endif %}
{# Events #}
{% if component.events.length %}
Events
{% endif %}
{# Custom Properties #}
{% if component.cssProperties.length %}
CSS custom properties
{% endif %}
{# CSS Parts #}
{% if component.cssParts.length %}
CSS parts
{% endif %}
{# Dependencies #}
{% if component.dependencies.length %}
Dependencies
This component automatically imports the following elements. Subdependencies, if any exist, will also be included in this list.
{% endif %}
{# Importing #}
Importing
The autoloader is the recommended way to import components. If you prefer to do it manually, use one of the following code snippets.
CDN
npm
React
To manually import this component from the CDN, use the following code.
import '{% cdnUrl component.path %}';
Coming soon!
Coming soon!
{# NOTE - disabled for alpha
To manually import this component from React, use the following code.
import '@shoelace-style/webawesome/react/{{ component.tagName | stripPrefix }}';
#}
{% endblock %}