How to Use and Remove the MUI Autocomplete Clear Button

The Autocomplete component is useful for giving the user limited options to select from. When a choice is selected it populates an Input subcomponent. Autocomplete has a ‘clear’ button for removing the selected choice. In this post we will: Add a custom clear event handler Style the clear button Remove the clear button The clear … Read more

How to Use Breakpoints in MUI’s SX Prop (5 Examples)

The sx prop makes responsive design and styling a simple process. This post shows five different applications of breakpoints with sx: Responsive layout Changing background color Changing font size Breakpoints in nested selectors Conditionally passing style objects I believe the five tutorials below provide will provide guidance for almost any responsive design need you may … Read more

How to Add MUI Badges to Tabs, Buttons, and Components in Containers

A difficult challenge when using Material-UI Badges is making sure they don’t get cut off or hidden when they overflow a component. Badges on the Tab component have this problem. Another challenge is making sure Badges don’t expand with a container and position far away from their anchor component. Badges on Buttons inside of Stacks … Read more