react-select#mergeStyles TypeScript Examples
The following examples show how to use
react-select#mergeStyles.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: react-select.ts From querybook with Apache License 2.0 | 6 votes |
export function makeReactSelectStyle(
modalMenu?: boolean,
style?: Record<string, unknown>
) {
let styles: Record<string, unknown> = style ?? defaultReactSelectStyles;
if (modalMenu) {
styles = mergeStyles(styles, {
menuPortal: (base) => ({
...base,
zIndex: 9999,
}),
});
}
return styles;
}
Example #2
Source File: react-select.ts From querybook with Apache License 2.0 | 6 votes |
miniReactSelectStyles: StylesConfig<any, false, any> = mergeStyles(
defaultReactSelectStyles,
{
control: (styles) => ({
...styles,
padding: '0px',
margin: '0px,',
minHeight: '0px',
}),
input: (styles) => ({
...styles,
padding: '0px',
margin: '0px,',
minHeight: '0px',
}),
dropdownIndicator: (styles) => ({
...styles,
padding: '0px 4px',
}),
}
)
Example #3
Source File: react-select.ts From querybook with Apache License 2.0 | 6 votes |
asyncReactSelectStyles: StylesConfig<
any,
false,
any
> = mergeStyles(defaultReactSelectStyles, {
dropdownIndicator: (styles) => ({
...styles,
display: 'none',
}),
})
Example #4
Source File: react-select.ts From querybook with Apache License 2.0 | 6 votes |
miniAsyncReactSelectStyles: StylesConfig<
any,
false,
any
> = mergeStyles(miniReactSelectStyles, {
dropdownIndicator: (styles) => ({
...styles,
display: 'none',
}),
})