How to use react-foundation - 4 common examples

To help you get started, we’ve selected a few react-foundation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shrugs / fivestar / app / components / SearchBar.js View on Github external
return (
      <div>
        
          <div>
            <input value="{this.state.query}" placeholder="headphones, school laptop, toaster" type="text"> this.setState({ query: e.target.value })}
            /&gt;
            <div>
              <button color="{Colors.PRIMARY}" type="submit"> this.performSearch()}
              &gt;
                Search
              </button>
            </div>
          </div>
        
        
          {this.props.showFilters &amp;&amp;
            
              <label>Only Amazon Fulfilled
                </label></div>
github shrugs / fivestar / app / components / ExampleSearchList.js View on Github external
const ProductLink = ({ slug, children }) =&gt; (
  
    <button color="{Colors.PRIMARY}"> {
        if (window.ga) {
          window.ga('send', 'event', {
            eventCategory: 'recommended',
            eventAction: 'click',
            eventLabel: slug
          })
        }
      }}
      isExpanded
    &gt;
      {children}
    </button>
  
)
github digiaonline / react-starter / src / components / login / login.js View on Github external
};

    return (
      <div>
        <h2>React starter</h2>
        <div>
          <form>
            <label>
              Email
              <input required="" placeholder="name@example.com" type="email">
            </label>
            <label>
              Password
              <input required="" placeholder="******" type="password">
            </label>
            <button color="{Colors.PRIMARY}" type="submit">Log in</button>
          </form>
        </div>
      </div>
    );
  }
}
github shrugs / fivestar / app / components / SearchBar.js View on Github external
type='submit'
                color={Colors.PRIMARY}
                onClick={() =&gt; this.performSearch()}
              &gt;
                Search
              
            
          
        
        
          {this.props.showFilters &amp;&amp;
            
              <label>Only Amazon Fulfilled
                </label>
            
          }
          {this.props.showFilters &amp;&amp;
            
              <label>Department
                <select value="{this.state.index"> this.handleIndexChange(e.target.value)}
                &gt;
                  <option value="All">All Depts.</option>
                  <option value="Appliances">Appliances</option></select></label>

react-foundation

Foundation as React components.

MIT
Latest version published 4 years ago

Package Health Score

47 / 100
Full package analysis