marketplace-elements ==================== Web component UI elements for Firefox Marketplace. make install make make serve [View Demo](http://mozilla.github.io/marketplace-elements/) Banner ------ The banner is used to show messages to users. ```html Hey! You should read this. Perform some action This small text will be hidden on narrow screens. ``` ### Configuration | attribute | description | |-----------|-------------| | success | Make it green | | dismiss | Configure dismissal. Values: `"on"` (default), `"off"`, `"remember"`. | Segmented --------- The segmented control acts like a select but provides a horizontal layout. ```html ``` ```js document.querySelector('mkt-segmented').value; // "3" ``` Login ----- A login link. This is pretty basic. It will add the "persona" class to a link. ```html Login! ``` ### Configuration | attribute | description | |-----------|-------------| | link | Required. Link is the only supported type right now. | Prompt ------ A form that can take the form of a page or as a modal. As a page, it has just a submit button. As a modal, it has a cancel and submit button. As a page: ```html

What is your name?

``` As a modal: ``` ... ``` ### Events | event | description | |-------------------|-------------| | mkt-prompt-cancel | cancel button is clicked | | mkt-prompt-submit | submit button is clicked. Serialized form data is passed in event details. | ### Configuration | attribute | description | |-----------|-------------| | validate | function to determine form validity. Defaults to only call form.checkvalidity. |