Skip to content
UI Kit
Accent color

Driving school

For driving schools. Licence classes, a cost calculator, intensive courses, the learning path of a student and a theory quiz with drawn traffic situations.

5 variants
Switch category

Driving school

Licence classes

Filter by car, motorbike or trailer on a gliding switch. Every class shows its code like on the licence card, the minimum age, what you may drive and the price from. The vehicle rolls a little when you point at the card.

Open in Studio

Cost calculator

Pick your experience and the lessons jump to a typical number, then fine tune with the slider. The total and the monthly rate glide, a bar splits it into lessons, special drives and fees.

Open in Studio

Intensive courses

Course dates with the class code and a plan of every day, theory, driving and exam in three tones that grow in while scrolling. Few seats turn amber, full courses offer the waiting list.

Open in Studio

Learning path

The way to the licence as a road that fills to the current step while scrolling, a car marks where you are. The current step shows its progress in segments, a ring beside it counts the same.

Open in Studio

Theory quiz

A drawn traffic situation beside the question. Tick every right answer and check, right answers turn green, a wrong pick shakes and the explanation appears. A score and a sign up at the end.

Open in Studio

Details

What Driving school brings along, read from the registry and the source.

Variants
5
Version
1.0.0 · since 1.1.0
File
components/ui/driving-school.tsx
Brings along
utilskitbuttoniconsectionmotionslider
npm packages
None
Languages
English and German, 38 texts of its own

Props

The DrivingSchoolProps interface from components/ui/driving-school.tsx, with the comments from the code.

  • variantoptional
    DrivingSchoolVariant

    licence-classescost-calculatorintensive-courseslearning-paththeory-quiz

  • eyebrowoptional
    React.ReactNode
  • titleoptional
    React.ReactNode
  • descriptionoptional
    React.ReactNode
  • classesoptional
    DrivingClass[]

    licence-classes

  • kindsoptional
    { id: string; label: string }[]

    licence-classes: labels of the vehicle kinds

  • lessonPriceoptional
    number

    cost-calculator: price of a lesson, fixed items and the instalment months

  • fixedItemsoptional
    DrivingCostItem[]
  • monthsoptional
    number
  • coursesoptional
    DrivingCourse[]

    intensive-courses

  • stepsoptional
    DrivingStep[]

    learning-path

  • questionsoptional
    DrivingQuestion[]

    theory-quiz

  • currencyoptional
    string

Built-in texts

Driving school writes these texts itself. The language follows the KitProvider, the labels prop replaces single ones.

Show all 38 texts
kindEnglish VehicleGerman Fahrzeug
allEnglish AllGerman Alle
fromAgeEnglish from {n}German ab {n}
yearsEnglish AgeGerman Alter
youMayEnglish You may driveGerman Damit darfst du fahren
fromEnglish from {price}German ab {price}
startEnglish Start with {code}German Mit {code} starten
lessonsEnglish Driving lessons, 45 minGerman Fahrstunden à 45 Min.
lessonsNEnglish {n} lessonsGerman {n} Fahrstunden
experienceEnglish Driving experienceGerman Fahrerfahrung
noneEnglish NoneGerman Keine
someEnglish SomeGerman Etwas
lotsEnglish Practised a lotGerman Viel geübt
totalEnglish Total, aboutGerman Gesamt, etwa
perMonthEnglish or {price} a month over {n} monthsGerman oder {price} im Monat über {n} Monate
breakdownEnglish What it is made ofGerman Woraus es sich zusammensetzt
noteEnglish Most learners need 25 to 35 lessons. We tell you after the third lesson how many you will likely need.German Die meisten brauchen 25 bis 35 Fahrstunden. Nach der dritten Stunde sagen wir dir, wie viele du voraussichtlich brauchst.
signUpEnglish Sign up nowGerman Jetzt anmelden
seatsLeftEnglish {n} of {total} seats leftGerman noch {n} von {total} Plätzen
fullEnglish Fully bookedGerman Ausgebucht
bookEnglish Book a seatGerman Platz buchen
waitlistEnglish Join the waiting listGerman Auf die Warteliste
theoryEnglish TheoryGerman Theorie
practiceEnglish DrivingGerman Fahren
examEnglish ExamGerman Prüfung
pathEnglish Your way to the licenceGerman Dein Weg zum Führerschein
progressNEnglish {n} of {total}German {n} von {total}
ofTotalEnglish of {total}German von {total}
nextStepEnglish Next upGerman Als Nächstes
questionEnglish Question {n} of {total}German Frage {n} von {total}
pointsNEnglish {n} pointsGerman {n} Punkte
checkEnglish Check answerGerman Antwort prüfen
rightEnglish CorrectGerman Richtig
wrongEnglish Not quiteGerman Nicht ganz
nextEnglish Next questionGerman Nächste Frage
scoreEnglish You got {n} of {total} rightGerman Du hast {n} von {total} richtig
againEnglish Try againGerman Noch einmal
chooseAllEnglish Tick every correct answerGerman Kreuze alle richtigen Antworten an

Accessibility

Read from the source of the component.

  • Driving school handles the keys Arrow up, Arrow down, Arrow left and Arrow right itself.
  • Sets aria-checked, aria-label and aria-live, so screen readers announce purpose and state.
  • Uses the roles checkbox, radio, radiogroup and status.
  • Announces changes through a live region without moving focus.
  • Shows a visible focus ring when used with the keyboard.
  • The server renders the starting state in full, JavaScript only adds the interaction.

Motion

  • Brings animations of its own, calmly timed and without wobble.
  • With reduced motion (prefers-reduced-motion) it stays still. 5 places in the code switch motion off then.

Frequent questions

How do I install Driving school?

With aiw add @ai-website/driving-school. The command puts components/ui/driving-school.tsx into your project, the code is yours from then on. It brings along button, icon, section, motion and slider. It needs no further npm packages.

Which variants does Driving school have?

5 variants, Licence classes, Cost calculator, Intensive courses, Learning path and Theory quiz. You pick one with the variant prop, for example variant="cost-calculator".

Can I translate the texts of Driving school?

Yes. Driving school carries 38 texts of its own in English and German, such as “Vehicle”, “All” and “Age”. The language follows the KitProvider, single texts change through the labels prop.

Can an AI assistant build with Driving school?

Yes. Through the MCP server of the aiw CLI, Claude, Cursor, GitHub Copilot, Windsurf, Codex and Gemini find Driving school with aiw_components and install it with aiw_add @ai-website/driving-school. Name the variant in your prompt, for example variant="licence-classes", and the assistant writes your content straight into the props.

Can I adjust Driving school without code?

Yes, in the Studio. All 5 variants are editable there, texts, lists and switches. The Studio writes the matching DrivingSchool code to copy.

Often searched

Jump to

Copied to the clipboard