/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
examples/with-supabase/components/tutorial/tutorial-step.tsx
30 строк
683 B
Jonathan Summers-Muir
examples: improve Supabase example (#69308)
28 авг 2024, 06:09
Не верифицирован
28 авг 2024, 06:09
00f70f2
Код
Авторство
О чём код?
import { Checkbox } from "../ui/checkbox"; export function TutorialStep({ title, children, }: { title: string; children: React.ReactNode; }) { return ( <li className="relative"> <Checkbox id={title} name={title} className={`absolute top-[3px] mr-2 peer`} /> <label htmlFor={title} className={`relative text-base text-foreground peer-checked:line-through font-medium`} > <span className="ml-8">{title}</span> <div className={`ml-8 text-sm peer-checked:line-through font-normal text-muted-foreground`} > {children} </div> </label> </li> ); }