mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-05 07:52:03 +00:00
feat(app): edit project and session titles
This commit is contained in:
parent
2ccaa10e79
commit
0866034946
5 changed files with 378 additions and 171 deletions
11
packages/ui/src/components/inline-input.tsx
Normal file
11
packages/ui/src/components/inline-input.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import type { ComponentProps } from "solid-js"
|
||||
import { splitProps } from "solid-js"
|
||||
|
||||
export type InlineInputProps = ComponentProps<"input"> & {
|
||||
width?: string
|
||||
}
|
||||
|
||||
export function InlineInput(props: InlineInputProps) {
|
||||
const [local, others] = splitProps(props, ["class", "width"])
|
||||
return <input data-component="inline-input" class={local.class} style={{ width: local.width }} {...others} />
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue