getFormStyles variable

getFormStyles variable

Signature

  1. getFormStyles: import("memoize-one").MemoizedFn<(theme: GrafanaTheme2, options: {
  2. variant: ButtonVariant;
  3. size: ComponentSize;
  4. invalid: boolean;
  5. }) => {
  6. label: {
  7. label: string;
  8. labelContent: string;
  9. description: string;
  10. categories: string;
  11. chevron: string;
  12. };
  13. legend: {
  14. legend: string;
  15. };
  16. fieldValidationMessage: {
  17. vertical: string;
  18. horizontal: string;
  19. fieldValidationMessageIcon: string;
  20. };
  21. button: {
  22. button: string;
  23. disabled: string;
  24. img: string;
  25. icon: string;
  26. content: string;
  27. };
  28. input: {
  29. wrapper: string;
  30. inputWrapper: string;
  31. input: string;
  32. inputDisabled: string;
  33. addon: string;
  34. prefix: string;
  35. suffix: string;
  36. loadingIndicator: string;
  37. };
  38. checkbox: {
  39. wrapper: string;
  40. input: string;
  41. checkmark: string;
  42. label: string;
  43. description: string;
  44. };
  45. }>

Import

  1. import { getFormStyles } from '@grafana/ui';