feat(app): edit project and session titles
This commit is contained in:
17
packages/ui/src/components/inline-input.css
Normal file
17
packages/ui/src/components/inline-input.css
Normal file
@@ -0,0 +1,17 @@
|
||||
[data-component="inline-input"] {
|
||||
color: inherit;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-radius: var(--radius-md);
|
||||
padding: 0;
|
||||
min-width: 0;
|
||||
font: inherit;
|
||||
letter-spacing: inherit;
|
||||
line-height: inherit;
|
||||
box-sizing: border-box;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 1px var(--border-interactive-focus);
|
||||
}
|
||||
}
|
||||
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} />
|
||||
}
|
||||
Reference in New Issue
Block a user