TimePicker
React Bootstrap 5 TimePicker
React Bootstrap 5 time picker is a component which uses a dialog to select a single time in hours:minutes
format. The selected time is indicated by the filled circle at the end of the clock hand.
Importing the React Bootstrap 5 TimePicker Component
To use the Contrast React Bootstrap 5 TimePicker component, you import CDBTimePicker
into your project.
import { CDBTimePicker } from "cdbreact";
Default TimePicker
Pro Component
import React from "react";import { CDBTimePicker, CDBContainer } from "cdbreact";
export const TimePicker = () => { return ( <CDBContainer> <CDBTimePicker placeholder="10:05 AM" theme="classic" colorPalette="dark" /> </CDBContainer> );};
API Reference: Contrast React Bootstrap 5 TimePicker Props
This section will build on your information about the props you get to use with the Contrast React Bootstrap 5 TimePicker component. You will find out what these props do, their default values, and how you would use them in your code.
The table below lists other prop options of the CDBTimePicker
component.
Name | Type | Default | Description | Example |
---|---|---|---|---|
placeholder | String | Required! Sets placeholder for time indicator input | <CDBTimePicker placeholder="placeholder" ... /> | |
time | String | Sets the time | <CDBTimePicker time="09:30:30 AM" ... /> | |
className | String | Adds custom classes | Adds custom classes | <CDBTimePicker className="myClass" ... /> |
theme | String | Sets the theme of the time picker. Can be either material , classic or neomorphism | <CDBTimePicker theme="classic" ... /> | |
colorPalette | String | light | Changes the color palette of the time picker. Can be either light or dark | <CDBTimePicker colorPalette="dark" ... /> |
tag | String | div | Changes default input tag | <CDBCheckbox tag="input" ... /> |
disable | Boolean | false | Disables TimePicker component | <CDBTimePicker disabled .../> |
Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template

Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast