JV
jimmy vega

Number Generator - Copy this React, Tailwind Component to your project

Initial Setup: Background: "Set the background color to black." Buttons: Start Button: "Add a button labeled 'Start' with a blue background and white text." Stop Button: "Add a button labeled 'Stop' with a blue background and white text."Number Display: "Create a display area for numbers with font size 48, color blue, and background black." Logic Description: Number Generation: "Generate 4 unique random numbers between 1 and 35 every 100ms when 'Start' is clicked." Unique Numbers: "Ensure each generated number is unique."Start/Stop Functionality: "Stop the number generation when 'Stop' is clicked."

Prompt
Component Preview

About

NumberGenerator - Generate 4 unique random numbers every 100ms with Start/Stop buttons. Built with React and Tailwind. Download code free!

Share

Last updated 1 month ago