React Suite Button Icon Last Updated : 06 Mar, 2024 Comments Improve Suggest changes Like Article Like Report React Suite Button Icon allows to use of an Icon as a Button. The Button component is used to fire an action when the user clicks the button. React Suite Button IconButton Icon component is used when we want to use an icon as a button, It has an icon property that is used to specify the icon of the Button. It is a part of Button Component from the React Suite. React Suite Button Icon Syntax:<IconButton icon={<TwitterIcon />}> Twitter </IconButton>React Suite Button Icon Props:icon: This property of the IconButton component is used to specify the icon we want to use.color: This property of the IconButton component is used to change the color of the button. The color property can have any one of seven values: red, orange, yellow, green, cyan, blue, or violet.React Suite Button Icon ExamplesBelow are the implementation examples of React Suite Button Icon. Example 1: React Suite Button Icon ComponentsNow write down the following code in the App.js file. Here, App is our default component. In the following example, we used the IconButton component's icon property to specify the Icon. JavaScript // Filename - App.js import React from "react"; import { IconButton } from "rsuite"; import { Admin, Menu, Reload, Resize, Search } from '@rsuite/icons'; // Import the default CSS import "rsuite/dist/rsuite.min.css"; function App() { const ButtonStyle = { margin: "0px 10px" }; return ( <div className="App" style={{ textAlign: "center" }}> <header style={{ display: "block", marginBottom: "20px" }}> <h3 style={{ color: "green" }}>GeeksforGeeks</h3> <h5>React Suite Button Icon</h5> </header> {/* Icon Buttons */} <IconButton icon={<Reload />} color="cyan" appearance="primary" style={ButtonStyle} /> <IconButton icon={<Menu />} color="red" appearance="primary" style={ButtonStyle} /> <IconButton icon={<Admin />} color="violet" appearance="primary" style={ButtonStyle} /> <IconButton icon={<Resize />} color="green" appearance="primary" style={ButtonStyle} /> <IconButton icon={<Search />} color="cyan" appearance="primary" style={ButtonStyle} /> </div> ); } export default App; Output: Now open your browser and go to http://localhost:3000/, you will see the following output Example 2: React Suite Button Icon Custom StyleIn this example, we used to size and circle properties of the IconButton component to make f JavaScript // Filename - App.js import React from "react"; import { IconButton } from "rsuite"; import { Admin, Menu, Reload, Resize, Search } from '@rsuite/icons'; // Import the default CSS import "rsuite/dist/rsuite.min.css"; function App() { const ButtonStyle = { margin: "0px 10px" }; return ( <div className="App" style={{ textAlign: "center" }}> <header style={{ display: "block", marginBottom: "20px" }}> <h3 style={{ color: "green" }}>GeeksforGeeks</h3> <h5>React Suite Button Icon</h5> </header> {/* Icon Buttons */} <IconButton icon={<Menu />} color="red" appearance="primary" style={ButtonStyle} circle size="xs" /> <IconButton icon={<Admin />} color="violet" appearance="primary" style={ButtonStyle} circle size="sm" /> <IconButton icon={<Resize />} color="green" appearance="primary" style={ButtonStyle} circle size="md" /> <IconButton icon={<Search />} color="cyan" appearance="primary" style={ButtonStyle} circle size="lg" /> </div> ); } export default App; Output: Reference: https://rsuitejs.com/components/button/#icon-button Comment More infoAdvertise with us Next Article React Suite Dropdown Dropdown with Icon W writer01 Follow Improve Article Tags : Web Technologies ReactJS React-Suite Components React-Suite Similar Reads React Suite Button Icon React Suite Button Icon allows to use of an Icon as a Button. The Button component is used to fire an action when the user clicks the button. React Suite Button IconButton Icon component is used when we want to use an icon as a button, It has an icon property that is used to specify the icon of the 3 min read React Suite Dropdown Dropdown with Icon 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. The dropdown component allows the user to provide navigation that uses a select picker if you want to select a value. Dropdown with Icon will help us to add an 3 min read React Suite Nav With Icon Pre-requisite: React Suite Introduction A 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 3 min read React Suite Icon Size A 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 Icons sizes. Rea 2 min read React Suite Icon Color A 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 Icons colors. We 2 min read React Suite Icon Flip and rotate A 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 Icon Flip and Ro 3 min read React Suite Icon Animating A 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 Icon Animating. 2 min read React Suite Icon <Icon> Props 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. There is a lot of data that gets rendered on a web page. Sometimes we require to represent data using icons. This is when the Icon component allows the user to a 3 min read React Suite Icon Props A 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 Icon Props. Reac 3 min read React Suite Custom SVG Icon Extension 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 Custom SVG Icon Ex 4 min read Like