Skip to content

Instantly share code, notes, and snippets.

@lukaszkrzywizna
Last active April 16, 2024 17:25
Show Gist options
  • Save lukaszkrzywizna/907b2317bbf3682906ee7e4a6442ed6c to your computer and use it in GitHub Desktop.
Save lukaszkrzywizna/907b2317bbf3682906ee7e4a6442ed6c to your computer and use it in GitHub Desktop.
[<Interface>]
type HTMLAttributes<'element when 'element :> Element and 'element :> EventTarget> =
inherit AriaAttributes
inherit DOMAttributes<'element>
abstract member defaultChecked: bool option with get, set
[<Interface>]
type HTMLAttributesFactory<'Property, 'element when
'Property :> HTMLAttributes<'element> and
'element :> Element and
'element :> EventTarget> =
inherit AriaAttributesFactory<'Property>
inherit DOMAttributesFactory<'Property, 'element>
static member inline defaultChecked (value: bool) =
Interop.mkProperty<'Property>
(nameof(Unchecked.defaultof<HTMLAttributes<'element>>.defaultChecked))
value
type InputHTMLAttributes<'element when 'element :> Element and 'element :> EventTarget> =
inherit HTMLAttributes<'element>
abstract member disabled: bool option with get, set
[<Interface>]
type InputHTMLAttributesFactory<'Property, 'element when
'Property :> InputHTMLAttributes<'element> and
'element :> Element and
'element :> EventTarget> =
inherit HTMLAttributesFactory<'Property, 'element>
static member inline disabled (value: bool) =
Interop.mkProperty<'Property>
(nameof(Unchecked.defaultof<InputHTMLAttributes<'element>>.disabled))
value
[<Interface>]
type input = inherit InputHTMLAttributesFactory<InputHTMLAttributes>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment