Vendor opencode source for docker build
This commit is contained in:
20
opencode/packages/ui/src/components/keybind.tsx
Normal file
20
opencode/packages/ui/src/components/keybind.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user