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

@mui/lab

Package Overview
Dependencies
Maintainers
11
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mui/lab

Laboratory for new MUI modules.

  • 6.0.0-beta.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2M
decreased by-20.76%
Maintainers
11
Weekly downloads
 
Created

What is @mui/lab?

The @mui/lab package is a collection of experimental components that are considered 'lab' because they are still in the experimental phase. These components are built on top of the core Material-UI library and provide additional, more complex components that are not yet ready for the stable release. The components in the lab package can be used to enhance the user interface with more advanced features while still maintaining the design consistency of Material-UI.

What are @mui/lab's main functionalities?

Date and Time Pickers

Provides components for picking dates and times, such as DatePicker, TimePicker, and DateTimePicker. These components allow users to easily select dates and times within their applications.

import { LocalizationProvider, DateTimePicker } from '@mui/lab';
import AdapterDateFns from '@mui/lab/AdapterDateFns';

function MyComponent() {
  const [selectedDate, handleDateChange] = useState(new Date());

  return (
    <LocalizationProvider dateAdapter={AdapterDateFns}>
      <DateTimePicker
        label="DateTimePicker"
        value={selectedDate}
        onChange={handleDateChange}
      />
    </LocalizationProvider>
  );
}

Timeline

The Timeline component is used to display a list of events in chronological order. It is useful for creating visual timelines of events or processes.

import { Timeline, TimelineItem, TimelineSeparator, TimelineConnector, TimelineContent, TimelineDot } from '@mui/lab';

function MyTimeline() {
  return (
    <Timeline>
      <TimelineItem>
        <TimelineSeparator>
          <TimelineDot />
          <TimelineConnector />
        </TimelineSeparator>
        <TimelineContent>Step 1</TimelineContent>
      </TimelineItem>
      <TimelineItem>
        <TimelineSeparator>
          <TimelineDot />
          <TimelineConnector />
        </TimelineSeparator>
        <TimelineContent>Step 2</TimelineContent>
      </TimelineItem>
    </Timeline>
  );
}

Rating

The Rating component allows users to provide feedback in the form of a star rating. It can be used for product reviews, user feedback, or other rating systems.

import { Rating } from '@mui/lab';

function MyRating() {
  const [value, setValue] = useState(2);

  return (
    <Rating
      name="simple-controlled"
      value={value}
      onChange={(event, newValue) => {
        setValue(newValue);
      }}
    />
  );
}

Other packages similar to @mui/lab

Keywords

FAQs

Package last updated on 17 Dec 2024

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