component-modal-dropdown-datepicker-tailwind-css Tailwind Templates

Component Modal Dropdown Datepicker Tailwind Css

component-modal-dropdown-datepicker-tailwind-css

Library with modal content, dropdown and datePicker for easy use

for install

 npm install @bryan__parisot/component-modal-dropdown-datepicker-tailwind-css

props:

  • selected
  • setSelected
  • label,
  • options,
  • placeholder,
  • name,
  • onChange,

Example :

            <Dropdown
              placeholder="Choose your state"
              setSelected={setState}
              selected={state.name}
              options={states}
              label="State"
              name="State"
              onChange={(e) => e.target.value}
            />

datePicker use

props:

  • value
  • label,
  • name,
  • onChange,

Example :

            <DatePickers
              name="startDate"
              label="Start Date"
              onChange={(e) => setStartDate(e.target.value)}
              value={startDate}
            />

Just add your array in options

props:

  • title,
  • subtitle,
  • button,
  • displayModal

Example :

         <Modal
          title="Users create"
          subtitle=" You can access the users in the
                    employees"
          button="Back to employee creation"
          displayModal={setValidate}
        />

Tech Stack

Client: React, tailwind css

Authors

If you check the repository

Top categories

Loading Svelte Themes