@aws-amplify/ui
Version:
`@aws-amplify/ui` contains low-level logic & styles for stand-alone usage or re-use in framework-specific implementations.
43 lines (41 loc) • 1.49 kB
JavaScript
const autocomplete = {
menu: {
width: { value: '100%' },
marginBlockStart: { value: '{space.xxxs}' },
backgroundColor: { value: '{colors.background.primary}' },
borderColor: { value: '{colors.border.primary}' },
borderWidth: { value: '{borderWidths.small}' },
borderStyle: { value: 'solid' },
borderRadius: { value: '{radii.small}' },
options: {
display: { value: 'flex' },
flexDirection: { value: 'column' },
maxHeight: { value: '300px' },
},
option: {
backgroundColor: { value: '{colors.background.primary}' },
color: { value: 'currentcolor' },
cursor: { value: 'pointer' },
transitionDuration: { value: '{time.short}' },
transitionProperty: { value: 'background-color, color' },
transitionTimingFunction: { value: 'ease' },
_active: {
backgroundColor: { value: '{colors.primary.80}' },
color: { value: '{colors.white}' },
},
},
_empty: {
display: { value: 'flex' },
},
_loading: {
alignItems: { value: 'center' },
display: { value: 'flex' },
gap: { value: '{space.xxxs}' },
},
spaceShared: {
paddingBlock: { value: '{space.xs}' },
paddingInline: { value: '{space.small}' },
},
},
};
export { autocomplete };