mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-12-04 11:27:00 +00:00
21 lines
449 B
TypeScript
21 lines
449 B
TypeScript
import { ITextFieldStyles } from "@fluentui/react";
|
|
|
|
interface TextFieldStylesProps {
|
|
fontSize: number | string;
|
|
width: number | string;
|
|
}
|
|
|
|
export const getTextFieldStyles = (params?: TextFieldStylesProps): Partial<ITextFieldStyles> => ({
|
|
field: {
|
|
fontSize: params?.fontSize || 12,
|
|
selectors: {
|
|
"::placeholder": {
|
|
fontSize: params?.fontSize || 12,
|
|
},
|
|
},
|
|
},
|
|
root: {
|
|
width: params?.width || 300,
|
|
},
|
|
});
|