diff --git a/docs/src/components/sidebar.njk b/docs/src/components/sidebar.njk index 46cdb25..2e209c5 100644 --- a/docs/src/components/sidebar.njk +++ b/docs/src/components/sidebar.njk @@ -83,23 +83,14 @@ toc: {{ code_block(code_html | prettyHtml, "html") }}
-

To use a sidebar, you will need the sidebar itself and a sibling container for the content of the page (e.g. <main>), with the following structure for the sidebar:

- - - -

Any elememt on the page can toggle, open or close the sidebar by dispatching the basecoat:sidebar, sidebar:open or sidebar:close events.

- -

You can include the JavaScript code provided below, load it as an individual file or use the CLI. Some Alpine.js properties are also required on certain elements (e.g. x-bind, x-data, @click).

+

Any element on the page can toggle, open or close the sidebar by dispatching the basecoat:sidebar. By default, the event will toggle the sidebar, but can be used to open or close if you add an action to the detail:

+{% set code_trigger %} + +{% endset %} +{{ code_block(code_trigger | prettyHtml, "html") }} +

HTML structure

diff --git a/docs/src/components/toast.njk b/docs/src/components/toast.njk index 2e0967a..39234e4 100644 --- a/docs/src/components/toast.njk +++ b/docs/src/components/toast.njk @@ -95,7 +95,7 @@ toc: {{ code_block(code_toaster | prettyHtml, "html") }}
-

You can set up the alignment of the toaster using the data-align attribute: start, center, or end (default to end).

+

You can set up the alignment of the toaster using the data-align attribute: data-align="start", data-align="center", or data-align="end" (default to data-align="end").

Step 3: Add your toasts