Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material-ui/pickers

Package Overview
Dependencies
Maintainers
8
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material-ui/pickers

React components, that implements material design pickers for material-ui v4

  • 3.3.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
460K
increased by1.53%
Maintainers
8
Weekly downloads
 
Created

What is @material-ui/pickers?

@material-ui/pickers is a package that provides date and time pickers built using Material-UI. It offers a variety of components to handle date and time selection in a user-friendly and visually appealing manner.

What are @material-ui/pickers's main functionalities?

Date Picker

The Date Picker component allows users to select a date from a calendar view. The selected date is managed using React state.

import React from 'react';
import { DatePicker } from '@material-ui/pickers';

function App() {
  const [selectedDate, handleDateChange] = React.useState(new Date());

  return (
    <DatePicker
      value={selectedDate}
      onChange={handleDateChange}
      label="Select Date"
    />
  );
}

export default App;

Time Picker

The Time Picker component allows users to select a time. The selected time is managed using React state.

import React from 'react';
import { TimePicker } from '@material-ui/pickers';

function App() {
  const [selectedTime, handleTimeChange] = React.useState(new Date());

  return (
    <TimePicker
      value={selectedTime}
      onChange={handleTimeChange}
      label="Select Time"
    />
  );
}

export default App;

DateTime Picker

The DateTime Picker component allows users to select both date and time. The selected date and time are managed using React state.

import React from 'react';
import { DateTimePicker } from '@material-ui/pickers';

function App() {
  const [selectedDateTime, handleDateTimeChange] = React.useState(new Date());

  return (
    <DateTimePicker
      value={selectedDateTime}
      onChange={handleDateTimeChange}
      label="Select Date & Time"
    />
  );
}

export default App;

Other packages similar to @material-ui/pickers

Keywords

FAQs

Package last updated on 24 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc