diff --git a/docs/multi-select.gif b/docs/multi-select.gif new file mode 100644 index 0000000..51b61d8 Binary files /dev/null and b/docs/multi-select.gif differ diff --git a/docs/multi-select.md b/docs/multi-select.md new file mode 100644 index 0000000..3918716 --- /dev/null +++ b/docs/multi-select.md @@ -0,0 +1,75 @@ +# Multi-select Component + +![multi-select](multi-select.gif) + +## Usage + +```javascript +import { MultiSelect } from 'tailwindcss-stimulus-components' +application.register('multi-select', MultiSelect) +``` + +```html +
To view examples locally, run npm install && npm run build && npx serve
and then open localhost:3000
in your browser.
+ To view examples locally, run
+ npm install && npm run build && npx serve
+ and then open localhost:3000
in
+ your browser.
+
- We have alerts too! -
-We have alerts too!
+When open, you can navigate menu items with Up and Down keys.
++ When open, you can navigate menu items with Up and Down keys. +
Modals use the <dialog>
html element and can be closed with Esc or a button. See the dialog element MDN docs.
+ Modals use the <dialog>
html element and can be closed with
+ Esc or a button. See the
+ dialog element MDN docs.
+
Slideovers use the <dialog>
html element and can be closed with Esc or a button. See the dialog element MDN docs.
+ Slideovers use the <dialog>
html element and can be closed with
+ Esc or a button. See the
+ dialog element MDN docs.
+
This slideover dialog has a groovy backdrop!
- +These tabs can be navigated with the keyboard using Left, Right, Home, and End.
++ These tabs can be navigated with the keyboard using Left, Right, Home, and End. +
-