0.2.3 • Published 2 years ago

gnarly-date-picker v0.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

gnarly-date-picker

npm version GitHub repo Node.js version

A customizable date picker component for React.

The gnarly-date-picker component is a versatile date picker that can be integrated into your React applications. It provides a flexible and user-friendly solution for selecting dates.

Prerequisites

Before using this component, ensure that you have React and React DOM installed in your project.

npm install react react-dom

Installation

You can install the package using npm, pnpm, or yarn:

npm install gnarly-date-picker
pnpm install gnarly-date-picker
yarn add gnarly-date-picker

Usage

import GnarlyDatePicker from "gnarly-date-picker";

// ...

function MyComponent() {
    const [date, setDate] = useState(null);
    
    return (
    <form>
        <GnarlyDatePicker
            date={date} 
            setDate={setDate}
        />
    </form>
    );
    }

    export default MyComponent;

Props

The GnarlyDatePicker component accepts the following props:

date (required): The selected date value (controlled component). setDate (required): A function to update the selected date (controlled component).

Additional Props

  • name (optional): The name attribute for the input field.
  • label (optional): A label for the date picker.
  • displayDateText (optional): A boolean to control the display of the selected date.
  • wrapperHeight (optional): The height of the date picker wrapper.
  • wrapperWidth (optional): The width of the date picker wrapper.
  • showColumnIndex (optional): A boolean to control the display of column indices.
  • inputClassName (optional): CSS class for styling the input element.

Feel free to customize the component's appearance and behavior further based on your application's needs.

Links

npm package GitHub repository

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.28

2 years ago

0.1.27

2 years ago

0.1.26

2 years ago

0.1.25

2 years ago

0.1.24

2 years ago

0.1.23

2 years ago

0.1.22

2 years ago

0.1.21

2 years ago

0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago