New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@myuw-web-components/myuw-search

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@myuw-web-components/myuw-search

A material search field made for use with MyUW web components


Version published
Maintainers
5
Created

Development and contribution

To run the demo app locally and test the component, run the following commands:

$ npm install
$ npm start

Getting Started

Add the following import to your page's <head>:

<script type="module" src="https://unpkg.com/@myuw-web-components/myuw-search@^1?module"></script>
<script nomodule scr="https://unpkg.com/@myuw-web-components/myuw-search@^1"></script>

Use the component's HTML tag wherever you want:

<myuw-search
    input-label="Search MyUW"
    button-label="Submit search"
    icon="search">
</myuw-search>

Configurable properties via attributes

inputLabel (input-label): Text to use in the aria-label and placeholder of the search field buttonLabel (button-label): Text to use for the aria-label of the search button icon (icon): Text name of the material icon to use for the submit button ("search" by default)

FAQs

Package last updated on 16 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts