summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/inline-input.tsx
blob: 72711a197f113cdcbea2c90b021dc6d6150652e7 (plain)
1
2
3
4
5
6
7
8
9
10
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} />
}