fieldControlState.tsx 480 B

1234567891011121314151617181920
  1. import styled from '@emotion/styled';
  2. const width = '36px';
  3. const FieldControlState = styled('div')<{
  4. /**
  5. * Do not apply a width to the control state container, allowing it to flex
  6. * based on its parents constraints.
  7. */
  8. flexibleControlStateSize?: boolean;
  9. }>`
  10. display: flex;
  11. position: relative;
  12. ${p => !p.flexibleControlStateSize && `width: ${width}`};
  13. flex-shrink: 0;
  14. justify-content: center;
  15. align-items: center;
  16. `;
  17. export default FieldControlState;