@gechiui/components
Version:
UI components for GeChiUI.
31 lines (26 loc) • 620 B
JavaScript
// @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 ;
margin: 0 ;
}
input[type='number'] {
-moz-appearance: textfield;
}
`;
};
export const Input = styled( InputControl )`
${ htmlArrowStyles };
`;