UNPKG

react-autosuggestions

Version:

An accessible React component to take the pain out of creating auto-suggestion components

68 lines (67 loc) 1.65 kB
export const defaultOptions = { announcement: { position: "absolute", clip: "rect(0 0 0 0)", clipPath: "inset(50%)", height: "1px", width: "1px", overflow: "hidden" }, combobox: { display: "inline-block" }, hoveredSuggestionOption: { background: "#110D3B", color: "#FFF" }, loadingStyles: { backgroundImage: "url(https://upload.wikimedia.org/wikipedia/commons/d/de/Ajax-loader.gif)", backgroundPosition: "right center", backgroundRepeat: "no-repeat", }, searchField: { padding: ".5rem", border: "2px solid #c8c8c8", backgroundColor: "#fff", borderRadius: "6px", color: "#000", fontWeight: "normal", fontSize: "1.35rem", margin: "0 auto", width: "19rem", focus: { color: "#000", border: "2px solid #005499", outline: "none" } }, searchLabel: { display: "block", fontSize: "1.35rem" }, selectedSuggestionOption: { background: "#110D3B", color: "#FFF" }, suggestionsContainer: { display: "block", position: "absolute", border: "1px solid #999", background: "#fff", width: "20rem", zIndex: "1" }, suggestionOption: { margin: "0", padding: ".5rem", fontSize: "1.35rem", whiteSpace: "nowrap", overflow: "hidden", cursor: "default" }, suggestionOptions: { margin: "0", padding: "0", listStyle: "none" } };