native-base
Version:
Essential cross-platform UI components for React Native
18 lines (15 loc) • 419 B
text/typescript
import { mode } from '../tools/colors';
const typeaheadSearchItemBaseStyle = (props: Record<string, any>) => {
return {
backgroundColor: mode('gray.100', 'gray.600')(props),
_focus: {
backgroundColor: mode('primary.300', 'primary.700')(props),
},
_disabled: {
backgroundColor: 'gray.200',
},
};
};
export const TypeAheadSearchItem = {
baseStyle: typeaheadSearchItemBaseStyle,
};