Lead Frontend
​
​
Log inSign up
© 2026 Lead Frontend. Free educational content, provided as is; it may contain errors. Not affiliated with any company or product named on this site.
TermsPrivacyDisclaimerCopyrightLicenses & credits

User Interface Coding

Build interactive, accessible components and small apps in React.

Progress

0 / 59 completed

​
​
​
Difficulty
​
Topic
​
Status
Recommended
Sort

Showing 59 questions

Accordion

Build an accessible accordion with expandable sections and full keyboard support.

UI Coding
Easy
25 min

Accordion II: Single Open, Controlled

Extend an accordion so only one section is open at a time, with optional collapsing and a controlled API.

UI Coding
Medium
25 min

Analog Clock

Draw a ticking analog clock in SVG with correctly rotated hour, minute and second hands and an accessible name.

UI Coding
Medium
30 min

Auth Code Input

Build a one-time-code input split into digit boxes with auto-advance, backspace, arrow keys and paste support.

UI Coding
Medium
30 min

Autocomplete / Typeahead

Build an accessible combobox that searches an async API with debouncing, caching and race-condition handling.

UI Coding
Hard
45 min

Birth Year Histogram

Bucket a list of birth years into a bar-chart histogram with adjustable bucket size and an accessible data-table view.

UI Coding
Medium
30 min

Connect Four

Build Connect Four with gravity drops, last-move win detection, column-based keyboard controls and announced moves.

UI Coding
Hard
50 min

Contact Form

Build a contact form with accessible inline validation, a submitting state and a success message.

UI Coding
Easy
25 min

Data Table

Build a paginated users table with a rows-per-page selector and previous/next navigation.

UI Coding
Medium
25 min

Data Table II: Sorting and Filtering

Add sortable column headers and a search filter to a paginated users table.

UI Coding
Medium
35 min

Data Table III: Generic Columns

Turn a users-only table into a reusable DataTable driven by column definitions with renderers, sorting and typed filters.

UI Coding
Hard
50 min

Date Picker

Build a date input with a calendar dialog following the WAI-ARIA date picker pattern: grid keyboard navigation, focus trap and return.

UI Coding
Hard
60 min

Dice Roller

Roll a chosen number of six-sided dice, draw each face with CSS pips and announce the total accessibly.

UI Coding
Easy
20 min

Digital Clock

Build a ticking digital clock that stays aligned to real seconds, with a 12/24-hour toggle and clean timer teardown.

UI Coding
Easy
20 min

Drag-and-Drop Sortable List

Build a reorderable list with pointer dragging and a full keyboard alternative: pick up, move, drop or cancel, with announcements.

UI Coding
Hard
55 min

Dropdown Menu

Build an accessible menu button: open and close, arrow-key and typeahead navigation, outside click and focus return.

UI Coding
Medium
35 min

File Explorer

Render a nested folder/file tree where folders expand and collapse, sorted folders-first.

UI Coding
Medium
30 min

File Explorer II: Keyboard Tree

Turn a file explorer into a WAI-ARIA tree view with roving focus, arrow-key navigation and type-ahead.

UI Coding
Hard
45 min

Flight Booker

Build a one-way or return flight form with date constraints, disabled states and a booking confirmation.

UI Coding
Easy
20 min

Generate Table

Generate a numbered table from row and column inputs, filled row by row, column by column or in a snake pattern.

UI Coding
Easy
20 min

Grid Lights

Build a grid of toggle lights that, once all are lit, switch off one by one in reverse activation order.

UI Coding
Medium
30 min

Hello World Counter

Build a counter with increment, decrement and reset that never drops below zero and announces its value.

UI Coding
Easy
10 min

Holy Grail Layout

Build the classic header, three columns and footer layout with CSS Grid, landmarks, a sticky footer and responsive stacking.

UI Coding
Easy
20 min

Image Carousel

Build an accessible image carousel with previous/next controls, wrap-around and dot navigation.

UI Coding
Medium
30 min

Image Carousel II: Infinite Transitions

Extend the image carousel with sliding animations that loop seamlessly in both directions.

UI Coding
Hard
45 min

Infinite Scroll Feed

Build a cursor-paginated feed that loads more posts as you scroll, with abort handling, retries and the ARIA feed pattern.

UI Coding
Medium
40 min

Job Board

Build a paginated job board on a Hacker News-style API: fetch ids, then load job details in parallel pages.

UI Coding
Medium
40 min

Kanban Board

Build a kanban board with normalised state, adding and deleting cards, and moving cards between columns by pointer or keyboard.

UI Coding
Hard
60 min

Like Button

Build a toggle Like button that talks to a flaky API, with pending, error and accessible pressed states.

UI Coding
Easy
20 min

Memory Game

Build a card-matching memory game with timed flip-back, move counting and screen-reader friendly announcements.

UI Coding
Medium
40 min

Modal Dialog

Build a reusable modal dialog with a portal, labelled dialog semantics, Escape and backdrop dismissal, and focus restoration.

UI Coding
Medium
30 min

Modal Dialog II: Focus Trap and Inert Background

Make a modal fully accessible: Tab and Shift+Tab stay inside, the background is inert, and focus is managed from open to close.

UI Coding
Hard
40 min

Mortgage Calculator

Calculate the monthly payment, total cost and total interest of a fixed-rate loan as the user types.

UI Coding
Easy
20 min

Multi-step Form Wizard

Build a three-step sign-up wizard with per-step validation, a progress indicator, focus management and a review step.

UI Coding
Medium
45 min

Nested Checkboxes

Build a checkbox tree where parents reflect their children as checked, unchecked or indeterminate.

UI Coding
Medium
30 min

Pixel Art Editor

Build a 16×16 pixel-art editor with a colour palette, draw/erase tools, click-and-drag painting and keyboard drawing.

UI Coding
Medium
35 min

Progress Bar

Build a reusable, accessible progress bar that clamps its value and shows the percentage.

UI Coding
Easy
15 min

Progress Bars

Each click adds a progress bar that fills from 0 to 100% over two seconds, driven by requestAnimationFrame.

UI Coding
Medium
25 min

Progress Bars II: Concurrency Limit

Extend the progress bars so at most three fill at once while the rest wait in a queue.

UI Coding
Medium
25 min

Progress Bars III: Pause and Resume

Queue-limited progress bars that can be paused and resumed without losing progress, driven by one shared clock.

UI Coding
Hard
40 min

Selectable Cells (Drag Select)

Build a grid where dragging selects a rectangle of cells, with modifier-key multi-select and a full keyboard equivalent.

UI Coding
Hard
40 min

Sign-up Form Validation

Build a sign-up form with on-blur validation, a live password checklist, cross-field checks and a show-password toggle.

UI Coding
Medium
35 min

Star Rating

Build a star rating input with hover preview, keyboard support and a clear button, built on native radios.

UI Coding
Easy
20 min

Stopwatch

Build an accurate stopwatch with start, stop, lap and reset, based on timestamps rather than counting ticks.

UI Coding
Medium
30 min

Tabs

Build a tabs component that shows one panel at a time, with the correct tab roles and selected state.

UI Coding
Easy
20 min

Tabs II: Keyboard Accessible

Add roving tabindex, arrow-key navigation and automatic or manual activation to a tabs component.

UI Coding
Medium
30 min

Temperature Converter

Two linked inputs, Celsius and Fahrenheit, that update each other and handle invalid input gracefully.

UI Coding
Easy
15 min

Tic-tac-toe

Build a two-player tic-tac-toe game with win and draw detection, a live status and a keyboard-navigable board.

UI Coding
Medium
30 min

Tic-tac-toe II: N × N, M in a Row

Generalise tic-tac-toe to a configurable N × N board where M marks in a row win, with an efficient last-move win check.

UI Coding
Hard
45 min

Toast Notifications

Build a toast system with a context API, live-region announcements, auto-dismiss that pauses on hover or focus, and a visible limit.

UI Coding
Medium
35 min

Todo List

Build a todo list with add, complete, delete and filters, using semantic forms and good focus management.

UI Coding
Easy
25 min

Tooltip and Popover

Build an accessible hover/focus tooltip and a click-triggered popover, and explain when to use each.

UI Coding
Medium
35 min

Traffic Light

Build a traffic light that cycles through configurable states with timers, a pause control and clean effect teardown.

UI Coding
Medium
25 min

Transfer List

Move checked items between two lists with per-list select-all and bulk transfer controls.

UI Coding
Medium
30 min

Tweet Card

Build a social post card with semantic markup, relative timestamps, compact counts and accessible action buttons.

UI Coding
Easy
25 min

Users Database (CRUD)

Build a small users database with search, a keyboard-accessible listbox, and create, update, delete and cancel actions.

UI Coding
Medium
40 min

Virtualized List

Render a 10,000-row list smoothly by windowing: only the visible rows plus overscan are in the DOM.

UI Coding
Hard
50 min

Whack-a-Mole

Build a timed whack-a-mole game with random moles, scoring, a countdown and keyboard play, managing several timers safely.

UI Coding
Medium
35 min

Wordle

Build a Wordle clone with physical and on-screen keyboards, correct duplicate-letter scoring and accessible feedback.

UI Coding
Hard
60 min