GithubHelp home page GithubHelp logo

mattste / material-ui-search-bar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from teamwertarbyte/material-ui-search-bar

0.0 2.0 0.0 747 KB

Material design search bar

Home Page: https://mui.wertarbyte.com/#material-ui-search-bar

License: MIT License

JavaScript 100.00%

material-ui-search-bar's Introduction

Material Search Bar

JavaScript Style Guide Build Status Greenkeeper badge

Example

See this component in action

Installation

npm i --save material-ui-search-bar

Usage

import SearchBar from 'material-ui-search-bar'

// ...
render() {
  return(
    <SearchBar
      onChange={() => console.log('onChange')}
      onRequestSearch={() => console.log('onRequestSearch')}
      style={{
        margin: '0 auto',
        maxWidth: 800
      }}
    />
  )
}

SearchBar Properties

Name Type Default Description
closeIcon node <CloseIcon color={grey500} /> Override the close icon.
dataSource array [] Array of strings or nodes used to populate the list.
dataSourceConfig object Config for objects list dataSource.
hintText string Search Sets hintText for the embedded TextField.
iconButtonStyle object Override the inline-styles of the button element.
onChange function Fired when the text value changes.
onRequestSearch function Fired when the search icon is clicked.
searchIcon node <SearchIcon color={grey500} /> Override the search icon.
spellCheck bool false Specifies whether the element to have its spelling and grammar checked or not.
style object Override the inline-styles of the root element.
value any The value of the text field.
disabled boolean false Disables underlying autocomplete.

* required property

License

The files included in this repository are licensed under the MIT license.

material-ui-search-bar's People

Contributors

batazor avatar bernalrs avatar lemaik avatar matsu911 avatar mattste avatar saschb2b avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.