---
// derivative of <Input />
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number
import type { HTMLAttributes } from "astro/types";
import Input from "./input.astro";
interface Props extends HTMLAttributes<"input"> {
label?: string;
}
---
<Input label="Count: " type="number" {...Astro.props} />
// derivative of <Input />
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number
import type { JSX } from "preact";
import Input from "./input";
interface Number extends JSX.HTMLAttributes<HTMLInputElement> {}
export default function Number(props: Number) {
return <Input label="count" type="number" {...props} />;
}