/** * HTML Props for JSX Elements * * Based on standard HTML props but excludes event handlers since * we use the `on` prop with the @/events package for event handling. */ import type { EventDescriptor } from '@remix-run/events' import type { StyleProperties, EnhancedStyleProperties } from '@remix-run/style' import type { Remix } from './component.ts' declare module './component.ts' { namespace Remix { /** * Get the props for a specific element type with normalized `on` prop. * * @example * interface MyButtonProps extends Props<"button"> { * size: "sm" | "md" | "lg" * } * * @example * function Button({ on = [], ...rest }: Props<"button">) { * // on is always EventDescriptor[] here * return