Skip to content
mui TextField기술 정리

Removing the arrows when a mui TextField has type: number

1 min readTech notesMoved from my Tistory blogRead the Korean original

js
const NumberTextField = styled(TextField)`
  input[type='number']::-webkit-inner-spin-button,
  input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
`;
  • #MUI
  • #number
  • #TextField
  • #type

More in Tech notes