@triptease/tt-accordion
v0.0.4
Published
Webcomponent tt-accordion following open-wc recommendations
Readme
<tt-accordion>
This webcomponent follows the open-wc recommendation.
Installation
yarn add @triptease/tt-accordionUsage
<script type="module">
import '@triptease/tt-accordion';
</script>
<tt-accordion label="Section title">
<p>Content goes here.</p>
</tt-accordion>Attributes
| Attribute | Type | Default | Description |
|-----------|---------|---------|--------------------------------------|
| label | string | "" | The header text shown on the trigger |
| open | boolean | false | Whether the accordion is expanded |
Testing
To execute a single test run:
yarn testTo run the tests in interactive watch mode:
yarn test:watch