Skip to content

Instantly share code, notes, and snippets.

@mikeyamadeo
Last active August 6, 2016 17:04
Show Gist options
  • Save mikeyamadeo/bef000086f104430203afd68b50d4bc9 to your computer and use it in GitHub Desktop.
Save mikeyamadeo/bef000086f104430203afd68b50d4bc9 to your computer and use it in GitHub Desktop.
import { StyleSheet, css } from 'aphrodite'
import { colors, spacing } from 'App/style/settings'
import Btn from 'App/shared/atm.Btn'
import Input from 'App/shared/atm.Input'
const styles = StyleSheet.create({
container: {
display: 'flex',
align: 'center',
padding: spacing.default
},
label: {
color: colors.secondary
},
space: {
marginRight: spacing.tiny
}
})
const SearchUI = ({inputVal, onInputUpdate, onSearch}) =>
<div className={css(styles.container)}>
<div className={css(style.space)}>
<label className={css(style.label)}>Search</label>
<Input value={inputVal} onChange={onInputUpdate} />
</div>
<Btn onClick={onSearch}>Search</Btn>
<div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment