React Suite DateRangePicker Appearance
Last Updated :
18 Jun, 2022
React Suite is a popular front-end library with a set of React components that are designed for the middle platform and back-end products. React Suite DateRangePicker component provides the user an interface to select a date range.
React Suite DateRangePicker Component's appearance prop defines how the DateRangePicker will visually appear to the users. It has two options that take a value either "default" or "subtle".
Syntax:
<DateRangePicker appearance="subtle" />
Prerequisite:
Creating React Application and Module installation:
Step 1: Create the react project folder, for that open the terminal, and write the command npm create-react-app folder name, if you have already installed create-react-app globally. If you haven’t, install create-react-app globally using the command npm -g create-react-app or install locally by npm i create-react-app.
npm create-react-app project
Step 2: After creating your project folder(i.e. project), move to it by using the following command.
cd project
Step 3: now install the dependency by using the following command:
npm install rsuite
Project Structure: It will look like this:
Example 1: We are importing the DateRangePicker Component from "rsuite", and to apply the default styles of the components we are importing "rsuite/dist/rsuite.min.css". To the DateRangePicker component, we are providing the appearance prop as "default".
App.js
import { DateRangePicker } from "rsuite";
import "rsuite/dist/rsuite.min.css";
function App() {
return (
<div className="App">
<h3>React Suite DateRangePicker Appearance</h3>
<p>Appearance = default</p>
<DateRangePicker appearance="default" />
</div>
);
}
export default App;
Step to Run Application: Run the application using the following command from the project's root directory.
npm start
Output:
Example 2: We are importing the DateRangePicker Component from "rsuite", and to apply the default styles of the components we are importing "rsuite/dist/rsuite.min.css". To the DateRangePicker component, we are providing the appearance prop as "subtle".
App.js
import { DateRangePicker } from "rsuite";
import "rsuite/dist/rsuite.min.css";
function App() {
return (
<div className="App">
<h3>React Suite DateRangePicker Appearance</h3>
<p>Appearance = subtle</p>
<DateRangePicker appearance="subtle" />
</div>
);
}
export default App;
Step to Run Application: Run the application using the following command from the project's root directory.
npm start
Output:
Reference: https://rsuitejs.com/components/date-range-picker/#appearance
Similar Reads
React Suite DateRangePicker Controlled React Suite is a popular front-end library with a set of React components that are designed for the middle platform and back-end products. It is a set of react component libraries for enterprise system products. It is a well-thought-out and developer-friendly UI framework. DateRangePicker component
3 min read
React Suite DateRangePicker Appearance React Suite is a popular front-end library with a set of React components that are designed for the middle platform and back-end products. React Suite DateRangePicker component provides the user an interface to select a date range. React Suite DateRangePicker Component's appearance prop defines how
2 min read
React Suite DateRangePicker Props React Suite is a library of React components, sensible UI design, and a friendly development experience. It is supported in all major browsers. It provides pre-built components of React which can be used easily in any web application. In this article, weâll learn about React suite DateRangePicker Pr
4 min read
React Suite DateRangePicker Component React Suite is a popular front-end library with a set of React components that are designed for the middle platform and back-end products. DateRangePicker component allows the user to quickly select a date range. We can use the following approach in ReactJS to use the React Suite DateRangePicker Com
4 min read
React Suite DateRangePicker Size React Suite is a front-end UI library built on top of React that lets us many pre-built components to our react application. It is a developer-friendly library and is a great base for building scalable and beautiful websites and applications. In this article, we will be seeing React Suite DateRangeP
3 min read
React Suite DateRangePicker Show One Calendar React Suite is a front-end UI framework that has a set of React components that developers can use in their react app to fasten the development process. It supports all the major browsers like Chrome, Safari, Firefox, Brave, etc. In this example, we will see React Suite DateRangePicker Show One Cale
3 min read
React Suite DateRangePicker Placeholder React Suite is a front-end UI library built on top of React that lets us many pre-built components to our react application. It is a developer-friendly library and is a great base for building scalable and beautiful websites and applications. In this article, we will be seeing React Suite DateRangeP
3 min read
React Suite DateRangePicker Select Whole Week, Whole Month React Suite is a front-end UI library built on top of React that lets us many pre-built components to our react application. It is a developer-friendly library and is a great base for building scalable and beautiful websites and applications. In this article, we will see React Suite DateRangePicker
3 min read
React Suite DateRangePicker Disabled and Readonly React suite is a library of React components, sensible UI design, and a friendly development experience. It is supported in all major browsers. It provides pre-built components of React which can be used easily in any web application. In this article, weâll learn about React suite DateRangePicker Di
3 min read
React Suite DateRangePicker Show Week Numbers React Suite is a front-end UI framework that has a set of React components that developers can use in their react app to fasten the development process. It supports all the major browsers like Chrome, Safari, Firefox, Brave, etc. In this example, we will see React Suite DateRangePicker Show Week Num
3 min read