UNPKG

@gechiui/components

Version:
31 lines (26 loc) 620 B
// @ts-nocheck /** * External dependencies */ import { css } from '@emotion/react'; import styled from '@emotion/styled'; /** * Internal dependencies */ import InputControl from '../../input-control'; const htmlArrowStyles = ( { hideHTMLArrows } ) => { if ( ! hideHTMLArrows ) return ``; return css` input[type='number']::-webkit-outer-spin-button, input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; } input[type='number'] { -moz-appearance: textfield; } `; }; export const Input = styled( InputControl )` ${ htmlArrowStyles }; `;