inline-input.tsx 398 B

1234567891011
  1. import type { ComponentProps } from "solid-js"
  2. import { splitProps } from "solid-js"
  3. export type InlineInputProps = ComponentProps<"input"> & {
  4. width?: string
  5. }
  6. export function InlineInput(props: InlineInputProps) {
  7. const [local, others] = splitProps(props, ["class", "width"])
  8. return <input data-component="inline-input" class={local.class} style={{ width: local.width }} {...others} />
  9. }