1.0.13 • Published 10 months ago

datepickerhtml v1.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

DatePickerHtml Component

DatePickerHtml is a React component permit to select a date with an input

Prérequis

  • React (minimum version 16.8)
  • Node.js(minimum version 14.x)

Install

npm install datepickerhtml@latest

Exemple

Use inputRef.current.value for get the date value Use errorRef.current.value for add an error message or not with ''

import React, { useRef } from 'react'
import DatePickerHtml from './DatePickerHtml'

function App() {
  const inputRef = useRef(null)
  const errorRef = useRef(null)

  return (
    <>
      <h1>Exemple of DatePickerHtml</h1>
      <DatePickerHtml
        id="datePicker1"
        content="Select a date"
        name="date"
        inputRef={inputRef}
        errorRef={errorRef}
      />
    </>
  )
}

export default App
1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago