/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/ui/src/components/keybind.tsx
20 строк
429 B
Kit Langton
feat: add oxlint with correctness defaults (#22682)
16 апр 2026, 03:45
Не верифицирован
16 апр 2026, 03:45
3d6f90c
Код
Авторство
О чём код?
import type { ComponentProps, ParentProps } from "solid-js" export interface KeybindProps extends ParentProps { class?: string classList?: ComponentProps<"span">["classList"] } export function Keybind(props: KeybindProps) { return ( <span data-component="keybind" classList={{ ...props.classList, [props.class ?? ""]: !!props.class, }} > {props.children} </span> ) }