# react-pikaday **Repository Path**: mirrors_davidtheclark/react-pikaday ## Basic Information - **Project Name**: react-pikaday - **Description**: A React component wrapper around Pikaday - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-pikaday A component wrapper around [Pikaday](https://github.com/dbushell/Pikaday). **[View Example](http://www.thomasboyt.com/react-pikaday/)** ## Importing ### Normal If you're using Browserify, or want to bring a custom Pikaday stylesheet, just require this component like any other module: ```javascript var Pikaday = require('react-pikaday'); ``` ### Bundled If you're using [webpack](http://webpack.github.io/) with a configured [style-loader](https://github.com/webpack/style-loader) for CSS, you can actually require this component along with the Pikaday CSS in one go: ```javascript var Pikaday = require('react-pikaday/bundled'); ``` ## Usage ```javascript /** @jsx React.DOM */ var React = require('react'); var Pikaday = require('react-pikaday'); var MyComponent = React.createClass({ getInitialState: function() { return { date: null }; }, handleChange: function(date) { this.setState({ date: date }); }, render: function() { var date = this.state.date; return (

The date is {date.toDateString()}

); } }); ``` ## Properties
value A Date object to set the currently-displayed date to.
onChange A callback called when the date is updated by the user. Passes a Date object as the first argument.
valueLink Instead of manually hooking up value/onChange to a state variable, you can instead use LinkedStateMixin to bind the two.