Skip to content
Get started

Search the docs

Quick start
Installation
Build your first page
What is public
Thinking in Turtlekit
Apps, websites and embeds
Components or native elements
Colour
Typography
Layout
Spacing, icons and shape
Components
Root
Layout
Typography
Code block
Button
Icon button
Button group
Call to action
Toolbar
Field
Text field
Text area
Select
Combobox
Date input
Save bar
Newsletter signup
File upload
Calendar
One-time code
Checkbox
Radio group
Switch
Segmented control
Toggle
Slider
Badge
Card
Data list
Item
Icon tile
Num
Time
Metric
Accordion
FAQ
Avatar
Media
Scroll area
Resizable
Carousel
Image slider
Logo cloud
Testimonials
Steps
Table
Data table
Chart
Site header
Site footer
Tabs
Page header
Breadcrumb
Pagination
Sidebar
Navigation menu
Callout
Error summary
Toast
Empty state
Skeleton
Progress
Spinner
Tooltip
Dialog
Popover
Hover card
Dropdown menu
Context menu
Menubar
Command
Elements area
Visually hidden
Error boundary
Design rules
Staying within the kit
Layout
Icons
Images and media
Typography
Readability
Colour
Composition
Accessibility
Elements
Motion
Interaction
AI pitfalls
Pricing
React design patterns
Single responsibility in React components
Presentational and container components in React
Children, function children and render props in React
The variant pattern in React
Compound components in React
Higher-order components in React
State colocation in React
Lifting state up in React
Deriving state during render
One status instead of many booleans
Adjusting state when a prop changes
Reading context with use() in React 19
Context selectors in React
Custom hooks and hook composition in React
One effect per concern in React
The latest ref pattern in React
Effect Events with useEffectEvent in React
Detecting the first render in React
Exposing methods with useImperativeHandle in React
Debouncing input in React
useDeferredValue in React
Loading components on demand in React
Virtualising long lists in React
Guard clauses and early returns in React
Skeleton placeholders in React
Rendering partial data in React
Empty states in React
Error boundaries in React
Reading async data with use() and Suspense in React
useTransition and Actions in React
Optimistic UI updates with useOptimistic
useActionState and form Actions in React
useSyncExternalStore in React
Ref as a prop and ref cleanup in React 19
Accessible ids with useId in React
Portals in React
Roving focus and keyboard navigation in React
Controlled and uncontrolled components in React
The state reducer and prop getters in React
Headless components and the provider pattern in React
The polymorphic as prop in React

Appearance

These change every page and preview on this site.

Steps

A sequence everyone goes through in order, every step in view, ending on the result.

When to use it: For how it works, a first visit or a project's phases. Things that happen in no order are features.

Apps, websites and embeds

Example

Your first hour at the clinic

What happens at a first assessment, and what you leave with.

  1. Book a time

    Choose a physio and a time online; a text reminds you the day before.

    £55, paid at the clinic

  2. Talk it through

    How it started and what makes it worse. Wear shorts or loose clothes.

    The first 15 minutes

  3. Tests and treatment

    Your physio checks how you move, then starts treating it.

    About 30 minutes

  4. Leave with a plan

    Exercises on your phone, how many sessions it should take, and a receipt for your insurer.

    Follow-ups £45

Your first invoice from code, in five minutes

One package, one call, and the invoice is on its way.

  1. Install

    The client for Node, with its types.

    npm install @northwind/node
  2. Send an invoice

    One call with the client's email and the lines.

    await northwind.invoices.send({
      to: "accounts@brightwater.example",
      lines: [{ what: "Brand refresh", amount: 2400 }],
    });
  3. It is on its way

    The invoice comes back sent, with the link your client pays from.

    Usually under a second

    {
      "id": "inv_0048",
      "status": "sent",
      "total": 2400,
      "pay_url": "https://pay.northwind.example/inv_0048"
    }

Eight weeks from first call to files

A brand identity, phase by phase. The next project can start in March.

  1. First call

    What the brand must do and for whom; you get a written plan and a fixed price.

    Week 1

  2. Discovery

    Workshops with your team and five customer interviews. Your part: two half-days.

    Weeks 2 to 3

  3. Design

    Two directions, then one refined with your feedback every Friday.

    Weeks 4 to 7

  4. Files and guide

    The logo, type and colours, with a guide and every file your printer and developers need.

    Week 8

Guidelines

  • Shape each section from its content: as many items as there are, in the layout their relation needs (a sequence numbered, a comparison in a table, peers side by side), so neighbouring sections differ when their content differs. anti.layout-from-content
  • Say what the product does in plain, specific words, and show only evidence you can stand behind: numbers with what they measured, quotes and logos from real people and customers who agreed. anti.specific-claims
  • Give each page one h1 and step heading levels down one at a time (h2, then h3). type.heading-order

Add it to your project

It’s included in turtlekit.css and the turtlekit package: install it.

Your AI will also copy only this component, and what it needs, into your project. That comes with Turtlekit Pro, opening soon. Hear when it opens.

In detail

A sequence everyone goes through in order, every step in view, as an ordered list numbered once by the list: how it works from the first action to the result, a first visit, an order on its way, a project's phases. items, two to five, each a title, one description line, meta (the one fact only this business could state: how long, when, where, what it costs) and media (the real thing at that moment: a picture of the product's screen, a CodeBlock, a Media photo). The last step is the result and leads: its number filled, and in a row its media two tracks wide. layout auto lays the steps side by side where the list's own width holds them (about 14rem a track of words, 18rem of views; more steps than fit stay one under another), titles, lines, facts and views level across the row, and one under another below it, each view beside its words from 36rem; timeline keeps them one under another and draws each step's duration (a number in one unit for every step) to scale, beside its title from 36rem and under its words below. headingLevel sets the titles' level (default 3). Not for things that happen in no order (features, options, ways to help), and not a progress indicator; nothing in it moves.

Styles: css/steps.css.

How it’s built

The engineering patterns inside Steps, each explained in Turtlekit Editorial.

Variant pattern

layout is a closed set (auto or timeline); the width a row needs comes from the count, as a data attribute.

Partial rendering

description, meta, media and the timeline's bar render only when given; a step can be just a title.

Deriving state

The result (the last step), the row's width and the timeline's scale are derived from items during render; nothing is stored.