fieldLabel.tsx 438 B

123456789101112131415
  1. import isPropValid from '@emotion/is-prop-valid';
  2. import styled from '@emotion/styled';
  3. import space from 'sentry/styles/space';
  4. const shouldForwardProp = p => p !== 'disabled' && isPropValid(p);
  5. const FieldLabel = styled('div', {shouldForwardProp})<{disabled?: boolean}>`
  6. color: ${p => (!p.disabled ? p.theme.textColor : p.theme.disabled)};
  7. display: flex;
  8. gap: ${space(0.5)};
  9. line-height: 16px;
  10. `;
  11. export default FieldLabel;