You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`author-select` is a fully-stylable select menu component. It is designed to match the functionality of browser default select menus while providing flexibility for customization if desired.
4
+
5
+
`author-select` is broken down into several components:
6
+
7
+
-`author-selected-options`
8
+
-`author-options`
9
+
-`author-option`
10
+
-`author-optgroup-label`
11
+
-`author-optgroup`
12
+
13
+
This allows each part of the component to be styled directly. Each of these components can also be used standalone in other applications as well.
@@ -17,9 +27,9 @@ There are 4 versions of this element:
17
27
1.*author-select.es5.min.js* (ES5 Minified for Production)
18
28
1._author-select.es5.js_ (ES5 Unminified for Debugging)
19
29
20
-
Each version has it's own source map, so it's always possible to trace activity back to a specific code block in the source.
30
+
You only need to choose one of these files. If you need to support Internet Explorer, older versions of Chrome/Firefox/Safari, then you likely need the ES5 version. Each version has it's own source map, so it's always possible to trace activity back to a specific code block in the source.
21
31
22
-
You only need to choose one of these files. If you need to support Internet Explorer, older versions of Chrome/Firefox/Safari, then you likely need the ES5 version.
32
+
The best way to use `author-select` is in combination with [author-control](https://github.com/author-elements/control). Placing a `select` tag inside an `author-control` will automatically generate a fully-functional `author-select` menu and pair it with a label if provided.
23
33
24
34
*Via Global CDN*
25
35
@@ -34,25 +44,79 @@ You only need to choose one of these files. If you need to support Internet Expl
34
44
35
45
*Via npm*
36
46
37
-
If the [base class](https://github.com/author-elements/base) is not yet installed, install it:
47
+
1.If the [base class](https://github.com/author-elements/base) is not yet installed, install it:
Additional elements can be added to the various slots within the markup if desired.
118
+
119
+
## Customization and Styling
120
+
`author-select` is optimized for use with [NGN Chassis](https://github.com/ngn-chassis), a PostCSS-powered CSS Framework and Preprocessor. If using `author-select` separately, it and all its child elements can be styled directly with CSS. For a quick start, download the <ahref="#">default theme</a>.
121
+
122
+
The child elements of `author-select` can also be used independently to create customized UI components. See also [author-datalist](https://github.com/author-elements/datalist).
0 commit comments