Buckets:
| 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", "style"]) | |
| const style = () => { | |
| if (!local.style) return { width: local.width } | |
| if (typeof local.style === "string") { | |
| if (!local.width) return local.style | |
| return `${local.style};width:${local.width}` | |
| } | |
| if (!local.width) return local.style | |
| return { ...local.style, width: local.width } | |
| } | |
| return <input data-component="inline-input" class={local.class} style={style()} {...others} /> | |
| } | |
Xet Storage Details
- Size:
- 708 Bytes
- Xet hash:
- 6edaf9f93b8b73a2654ded315805d107f349137dada48a923e818450ce1ada42
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.