Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • NextJS
  • Material UI
  • React Bootstrap
  • React Suite
  • Ant Design
  • Reactstrap
  • BlueprintJS
  • React Desktop
  • React Native
  • React Rebass
  • React Spring
  • React Evergreen
  • ReactJS
  • ReactJS
  • JS Formatter
  • Web Technology
Open In App
Next Article:
React Rebass Forms Textarea Component
Next article icon

React Rebass Forms Select Component

Last Updated : 07 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Select Component in React Rebass. Select is an important component that is required in each development. So to create a Select component, we can import the Rebass Select component.

Form Select component is used to make a component where we can select some values.

Syntax:

<Select>
<option>1</option>
</Select>

Creating React Application And Installing Module:

Step 1: Create a React application using the following command.

npx create-react-app foldername

Step 2: After creating your project folder i.e. foldername, move to it using the following command.

cd foldername

Step 3: Install React Rebass and form components in your given directory.

npm install rebass
npm i @rebass/forms

Project Structure: It will look like the following.

Folder Structure

Example 1: This is the basic example that shows how to use the Form Select component.

App.js
import React from "react"; import { Text } from "rebass"; import { Select } from "@rebass/forms";  const gfg = () => {     return (         <div id="gfg">             <Text fontSize={[3, 4, 5]} fontWeight="bold"              color="green" ml="42%">                 Geeksforgeeks             </Text>             <Text fontSize={[1, 2, 3]} fontWeight="bold"              color="black" ml="41%">                 Rebass Select Component             </Text>             <br />             <Select name="name" defaultValue="HTML">                 <option>HTML</option>                 <option>ReactJS</option>                 <option>JavaScript</option>                 <option>C++</option>                 <option>CSS</option>             </Select>         </div>     ); };  export default gfg; 

Step to Run Application: Run the application from the root directory of the project, using the following command.

npm start

Output:

Forms Select Component



Next Article
React Rebass Forms Textarea Component
author
taran910
Improve
Article Tags :
  • ReactJS
  • Web Technologies
  • React-Modules
  • React-Rebass

Similar Reads

  • React Rebass
    React Rebass is a front-end framework that was designed keeping React in mind. It is a themeable primitive UI component library for React. React Rebass is built with a Styled System. Any theme object created for the Styled System should work with Rebass. Rebass gives us flexible components by which
    1 min read
  • React Rebass Introduction
    React Rebass is a front-end framework that was designed keeping react in mind. React Rebass is built with a Styled System. It is the best choice to create prototypes and UI without needing to invest time in building a custom design system up-front. React Rebass provides us with flexible components.
    2 min read
  • React Rebass Basics

    • React Rebass Props
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know what are Props in React Rebase. The prop is an important component that is required in each development. Props are used for setting design constraints, ensuring easy accessibility to designs.
      5 min read

    • React Rebass Theming
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know what are Props in React Rebass. Props are an important component that is required in each development. Theming is used to provide colors, typographic styles, layout styles, and component vari
      3 min read

    • React Rebass Extending
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know what are Props in React Rebase. Extending is an important part that is required in each development. Rebass components are meant to be used as building blocks in the development of a design s
      2 min read

    • React Rebass Box Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Box Component in React Rebass. The Box is an important component that is required in each development. So to create a Box component, we can import the Rebass Box component. The box
      2 min read

    • React Rebass Flex Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Flex Component in React Rebass. Flex is an important component that is required in each development. So to create a Flex component we can import the Rebass Flex component.  The fle
      2 min read

    • React Rebass Text Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Text Component in React Rebass. Text is an important component that is required in each development. So to create a Text component we can import the Rebass Text component. The text
      1 min read

    • React Rebass Heading Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Heading Component in React Rebass. The heading is an important component that is required in each development. So to create a Heading component we can import the Rebass Heading com
      1 min read

    • React Rebass Button Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will see how to use Button Component in React Rebass. The button is an important component that is required in each development. So to create a button component, we can import the Rebass Button compone
      2 min read

    • React Rebass Link Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Link Component in React Rebass. The Link is an important component that is required in each development. So to create a Link component we can import the Rebass Link component. The
      2 min read

    • React Rebass Image Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Image Component in React Rebass. The Image is an important component that is required in each development. So to create an Image component, we can import the Rebass Image component
      2 min read

    • React Rebass Card Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Card Component in React Rebass. The Card is an extension of the Box component with card styles. So to create a Card component, we can import the Rebass Card component. Card compone
      2 min read

    React Rebass Guides

    • React Rebass CSS Grid
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use CSS Grid in React rebass. CSS Grid is an important component that is required in each development. CSS Grid is useful for arranging direct child elements without having to apply ad
      2 min read

    • React Rebass MDX Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use MDX Component in React rebass. MDX Component is an important component that is required in each development. MDX is a markdown-based format that allows you to import and use React
      2 min read

    React Rebass Forms

    • React Rebass Forms Label Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Label Component in React Rebass. The Label is an important component that is required in each development. So to create a Label component, we can import the Rebass Label component.
      2 min read

    • React Rebass Forms Input Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Input Component in React Rebass. The Input is an important component that is required in each development. So to create an Input component, we can import the Rebass Input component
      2 min read

    • React Rebass Forms Select Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Select Component in React Rebass. Select is an important component that is required in each development. So to create a Select component, we can import the Rebass Select component.
      2 min read

    • React Rebass Forms Textarea Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Textarea Component in React Rebass. The Textarea is an important component that is required in each development. So to create a Textarea component, we can import the Rebass Textare
      2 min read

    • React Rebass Forms Radio Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Radio Component in React Rebass. The Radio is an important component that is required in each development. So to create a Radio component, we can import the Rebass Radio component.
      2 min read

    • React Rebass Forms Checkbox Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Checkbox Component in React Rebass. The checkbox is an important component that is required in each development. So to create a Checkbox component, we can import the Rebass Checkbo
      2 min read

    • React Rebass Forms Slider Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Slider Component in React Rebass. The Slider is an important component that is required in each development. So to create a Slider component, we can import the Rebass Slider compon
      2 min read

    • React Rebass Forms Switch Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Switch Component in React Rebass. The Switch is an important component that is required in each development. So to create a Switch component, we can import the Rebass Switch compon
      1 min read

    React Rebass Recipes

    • React Rebass Flexbox Grid Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Flexbox Grid Component in React rebass. Flexbox Grid is an important component that is required in each development. So to create a Flexbox Grid component we can import the Rebass
      2 min read

    • React Rebass Flexbox Wrap Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Button Component in React rebass. Flexbox Wrap is an important component that is required in each development. So to create a Flexbox Wrap component we can import the Rebass Flexbo
      2 min read

    • React Rebass Nav Bar Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Nav Bar Component in React rebass. Nav Bar is an important component that is required in each development. So to create a Nav Bar component we can import the Rebass Nav Bar compone
      2 min read

    • React Rebass Image Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Image Component in React Rebass. The Image is an important component that is required in each development. So to create an Image component, we can import the Rebass Image component
      2 min read

    • React Rebass Background Image Card Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Background Image Card Component in React rebass. Background Image Card  is an important component that is required in each development. So to create a Background Image Card compone
      2 min read

    • React Rebass Container Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Container Component in React rebass. Container is an important component that is required in each development. So to create a Container component we can import the Rebass Container
      1 min read

    • React Rebass Avatar Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Avatar Component in React rebass. Avatar is an important component that is required in each development. So to create an Avatar component we can import the Rebass Avatar component.
      2 min read

    • React Rebass Badge Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Badge Component in React rebass. Badge is an important component that is required in each development. So to create a Badge component we can import the Rebass Badge component. The
      2 min read

    • Rebass Nav Link Component
      React Rebass is a front-end framework that was designed keeping react in mind. In this article, we will know how to use Nav Link Component in React rebass. Nav Link is an important component that is required in each development. So to create a Nav Link component we can import the Rebass Nav Link com
      2 min read

geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences