MCPcopy Index your code
hub / github.com/SwapnilSoni1999/tw-daterange

github.com/SwapnilSoni1999/tw-daterange @v1.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.1 ↗ · + Follow
5 symbols 12 edges 5 files 0 documented · 0% updated 2y ago★ 381 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

tw-daterange

A DateRange picker made with tailwind and date-fns

tw-daterange


How to install

  1. Make sure you have tailwind installed and setup

  2. using npm

npm install tw-daterange

using yarn

yarn add tw-daterange
  1. Add the configuration to your tailwind.config.js
module.exports = {
  // ...
  content: [
    "./src/**/*.{js,jsx,ts,tsx}",
    "./node_modules/tw-daterange/dist/index.esm.js",
  ],
  // ...
}

How to use

import { useState } from "react"
import DateRangePicker from "tw-daterange"

const App = () => {
  const [range, setRange] = useState({
    startDate: new Date(),
    endDate: new Date(),
  })

  return (
    <DateRangePicker
      initialRange={range}
      onUpdate={(dateRange) => {
        setRange(dateRange)
      }}
    />
  )
}

export default App

License

MIT © Swapnil Soni

Extension points exported contracts — how you extend this code

DateRange (Interface)
(no doc)
src/DateRangePicker.tsx
Props (Interface)
(no doc)
src/DateRangePicker.tsx

Core symbols most depended-on inside this repo

isBetween
called by 2
src/DateRangePicker.tsx
generateCalendar
called by 2
src/DateRangePicker.tsx
DateRangePicker
called by 0
src/DateRangePicker.tsx

Shape

Function 3
Interface 2

Languages

TypeScript100%

Modules by API surface

src/DateRangePicker.tsx5 symbols

For agents

$ claude mcp add tw-daterange \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page