fieldControlState.tsx 429 B

12345678910111213141516
  1. import styled from '@emotion/styled';
  2. import {FieldGroupProps} from './types';
  3. type FieldControlStateProps = Pick<FieldGroupProps, 'flexibleControlStateSize'>;
  4. const FieldControlState = styled('div')<FieldControlStateProps>`
  5. display: flex;
  6. position: relative;
  7. ${p => !p.flexibleControlStateSize && `width: 36px`};
  8. flex-shrink: 0;
  9. justify-content: center;
  10. align-items: center;
  11. `;
  12. export default FieldControlState;