Found 8591 Articles for Front End Technology

How to handle multiple selection of Toggle Button in Material UI?

Tarun Singh
Updated on 01-Nov-2023 13:09:16

919 Views

In this article, we are going to handle multiple selections of the toggle button in Material UI. To ensure a seamless and understandable user experience, handling the selection of multiple toggle buttons within a Toggle Button Group requires careful implementation. What is a Toggle Button? Toggle buttons are a very popular component not only in MUI but also in various other CSS frameworks like Bootstrap, etc., and it provide a way to choose between two or more options. These buttons are collectively referred to as the ToggleButtonGroup in MUI. A group of connected Toggle buttons should be highlighted by sharing ... Read More

How to handle multiple select in Material UI?

Tarun Singh
Updated on 01-Nov-2023 13:07:52

2K+ Views

Material UI is a used React UI framework that offers a robust Select component, which allows users to make selections, from a dropdown menu. In certain situations, you may require the ability to select items from the dropdown. Similar to selection, you can retrieve the value by accessing event.target.value within the onChange callback, and it will always be in array format. In this article, we will explore how to manage options using the Material UI. The Select component supports multiple selections by enabling the "multiple" prop. Steps to Handle Multiple Select Items Here are the steps for using various props ... Read More

How to handle errors in Radio Button in Material UI?

Tarun Singh
Updated on 01-Nov-2023 13:06:04

844 Views

Generally, it is advisable for radio buttons to have a default selected value. If this condition is not met, you can present an error message if no value is chosen upon submitting the form. In this article, we will delve into the process of managing errors in radio buttons within the Material UI. What is Error Handling? Handling errors, in radio buttons involves managing and giving feedback to users when they interact with radio button inputs within a form. There are two considerations when it comes to error handling, for radio buttons − Validation − It is essential to ... Read More

How to display labels on hover of the Rating component in Material UI?

Tarun Singh
Updated on 01-Nov-2023 13:04:40

449 Views

Material UI is a React UI framework that offers a range of components, for creating modern and user-friendly interfaces. One of its components is the Rating component, which is commonly utilized for collecting user feedback and displaying ratings for products or services. While the Rating component showcases stars (or any other icon) to represent the rating value, it can be advantageous to enhance the user experience by providing information through labels that appear when users hover over the stars. In this article, we will learn how to display the labels on hover in a rating component in Material UI. Steps ... Read More

How to create an enhanced Transfer List in Material UI?

Tarun Singh
Updated on 01-Nov-2023 13:03:40

990 Views

In this article, we are going to see a step-by-step guide to create an enhanced transfer list in React MUI. A transfer list is a type of list that allows the user to move one or more list items to another list. Here, if there are multiple items in the first list and the user wants to transfer some items to the second list, then we use the transfer list component. In React MUI, there is no specific component for Transfer List; rather, we create it on our own. There is also a concept of an enhanced list in Material ... Read More

How to use precision prop in the Rating component in Material UI?

Tarun Singh
Updated on 31-Oct-2023 15:21:54

313 Views

Sometimes there are instances where we find ourselves needing to rate products, services, or other things. On occasion, we often rely on a feature called "rating " commonly presented in the form of star ratings ranging from 1 to 5. However, what if we want to provide ratings using half or full increments? This is where the "precision" property in Material UI comes into play. By utilizing the precision prop, we can establish the minimum increment value for permitted changes. The rating component can then display numbers with the help of the value property. In this article, we will explore ... Read More

How to use Icons in Material UI?

Tarun Singh
Updated on 31-Oct-2023 15:19:08

525 Views

Icons play a crucial role in enhancing the visual appeal and usability of user interfaces. When using the Material UI framework, incorporating icons is a seamless process that adds a touch of elegance and functionality to your application. In this article, we will explore how to use icons in Material UI and leverage the extensive collection of icons provided by the library. To get started, Material UI offers its own set of icon components that are easy to use and highly customizable. These components are designed to align with the Material Design guidelines, ensuring consistency and a cohesive visual experience. ... Read More

How to use Chip actions in Material UI?

Tarun Singh
Updated on 31-Oct-2023 15:13:33

525 Views

In this article, we are going to learn how to use chip actions in Material UI. Chips are small components that stand in for input, an attribute, or an action. With the aid of chips, users can input data, select options, filter content, or start processes. Although it is presented here as a standalone component, the most common application will be some form of input, so some of the behavior is not shown in its proper context. Chip API The Chip API is utilized to add a chip to the React MUI. It comes with props − avatar − ... Read More

How to customize Chip in Material UI?

Tarun Singh
Updated on 31-Oct-2023 14:58:36

3K+ Views

In this article, we are going to learn how to customize chips in Material UI. Chips are small components that stand in for input, an attribute, or an action. With the aid of chips, users can input data, select options, filter content, or start processes. The chip can also be customized in the MUI in React. Customization of the chip may include, changing chip colors, custom deleting icons, adding avatars, or creating a chip using its root property. We will see everything in this article. To work with chip in MUI, we need to understand their API and its related ... Read More

How to create discrete sliders in Material UI?

Tarun Singh
Updated on 31-Oct-2023 14:57:10

292 Views

Developers can easily implement sliders thanks to the Slider component provided by Material UI. In the Material UI, sliders can either be continuous or discrete. While discrete sliders limit the selection to particular, predefined values, continuous sliders let users choose any value within a given range. In this article, we are going to learn how to create discrete sliders in Material UI. What are Discrete Sliders? The discrete slider allows the user only to select the value in a particular range as compared to the other sliders. To use the discrete sliders in React, we can adjust the slider to ... Read More

Advertisements