Discord bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 rivejä
549 B

  1. import * as React from 'react'
  2. import styled from 'styled-components'
  3. const Base = styled('input')({
  4. height: '2.5rem',
  5. border: '0.125rem solid',
  6. borderRadius: '0.25rem',
  7. outline: 0,
  8. backgroundColor: 'var(--color-bg, white)',
  9. color: 'var(--color-fg, black)',
  10. font: 'inherit',
  11. padding: '0 1rem',
  12. cursor: 'pointer',
  13. })
  14. type Props = {
  15. name: string,
  16. }
  17. const TextInput = React.forwardRef<HTMLInputElement, Props>((props, ref) => {
  18. return (
  19. <Base
  20. {...props}
  21. ref={ref}
  22. />
  23. )
  24. })
  25. export default TextInput