Solid.Internal.Props
- Package
- purescript-purs-solid
- Repository
- arazorda/purs-solid
Element props as records. Each field is converted to a Prop by a
function the instances build once per record type, so rendering only
reads the fields and applies those functions. vite/compile.mjs reads
compiled props dictionaries by these instances' names.
#UntypedProps Source
class UntypedProps :: Row Type -> Constraintclass UntypedProps props where
Members
untypedProps :: Array (Record props -> Prop ())
Instances
(RowToList props list, PropsRL Untyped list props) => UntypedProps props
#Typed Source
#Untyped Source
data UntypedFields taken as they are, for any tag.
Instances
Supports Untyped labelElementType Untyped Element(IsSymbol label, UntypedField value) => Attribute Untyped label value
#Entry Source
class Entry :: Type -> Symbol -> Type -> Constraintclass Entry kind label value where
One field, by its label.
Members
Instances
(ElementType kind element, TypeEquals value (element -> Effect Unit)) => Entry kind "ref" value(Supports kind "class", ClassValue value) => Entry kind "class" value(Supports kind "style", StyleValue value) => Entry kind "style" value(Supports kind "value", Supports kind "onInput", TypeEquals value (Signal String)) => Entry kind "bindValue" value(Supports kind "checked", Supports kind "onChange", TypeEquals value (Signal Boolean)) => Entry kind "bindChecked" value(ToBinding value String) => Entry kind "innerHTML" value(ToBinding value String) => Entry kind "textContent" value(ToBinding value String) => Entry kind "role" value(StartsWith "data-" label isData, StartsWith "aria-" label isAria, StartsWith "on:" label isEvent, Prefixed isData isAria isEvent kind label value) => Entry kind label value
#Prefixed Source
class Prefixed :: Boolean -> Boolean -> Boolean -> Type -> Symbol -> Type -> Constraintclass Prefixed isData isAria isEvent kind label value where
data-* attributes, aria-* attributes (from Solid.DOM.Aria), on:* events,
then everything else.
Members
Instances
(IsSymbol label, ToBinding value String) => Prefixed True isAria isEvent kind label value(IsSymbol label, Cons label type_ rest Aria, ToBinding value type_, AriaValue type_) => Prefixed False True isEvent kind label value(IsSymbol label, TypeEquals value (Event -> Effect Unit)) => Prefixed False False True kind label value(Attribute kind label value) => Prefixed False False False kind label value
#ElementType Source
class ElementType kind element | kind -> elementInstances
(Cons "$element" element rest row) => ElementType (Typed row) elementElementType Untyped Element
#Attribute Source
#RowField Source
class RowField type_ value whereA row field: an event handler for event types, otherwise an attribute value or an accessor of one.
Members
Instances
(TypeEquals value (Event -> Effect Unit)) => RowField Event value(TypeEquals value (MouseEvent -> Effect Unit)) => RowField MouseEvent value(TypeEquals value (KeyboardEvent -> Effect Unit)) => RowField KeyboardEvent value(TypeEquals value (FocusEvent -> Effect Unit)) => RowField FocusEvent value(TypeEquals value (PointerEvent -> Effect Unit)) => RowField PointerEvent value(TypeEquals value (DragEvent -> Effect Unit)) => RowField DragEvent value(TypeEquals value (TouchEvent -> Effect Unit)) => RowField TouchEvent value(TypeEquals value (ClipboardEvent -> Effect Unit)) => RowField ClipboardEvent value(TypeEquals value (WheelEvent -> Effect Unit)) => RowField WheelEvent value(ToBinding value type_, AttrValue type_) => RowField type_ value
#UntypedField Source
class UntypedField value whereOn an untyped element, functions are event handlers (label them onX)
and anything else is an attribute named exactly as the label.
Members
untypedField :: String -> value -> Prop ()
Instances
(TypeEquals result (Effect Unit)) => UntypedField (event -> result)(ToBinding value a, AttrValue a) => UntypedField value
#ClassValue Source
class ClassValue value whereclass: a string (or accessor), or a record of classes to toggles.
Members
classValue :: value -> Prop ()
Instances
(RowToList classes list, Toggles list classes) => ClassValue (Record classes)(ToBinding value String) => ClassValue value
#StyleValue Source
class StyleValue value wherestyle: CSS text (or an accessor), or a record of CSS properties.
Members
styleValue :: value -> Prop ()
Instances
(RowToList properties list, StyleEntries list properties) => StyleValue (Record properties)(ToBinding value String) => StyleValue value
#StyleEntries Source
class StyleEntries :: RowList Type -> Row Type -> Constraintclass StyleEntries list properties where
Members
styleEntries :: Array (Record properties -> Prop ())
Instances
StyleEntries Nil properties(IsSymbol label, ToBinding value String, StyleEntries rest properties) => StyleEntries (Cons label value rest) properties
#StartsWith Source
class StartsWith :: Symbol -> Symbol -> Boolean -> Constraintclass StartsWith prefix symbol result | prefix symbol -> result
Instances
StartsWith "" symbol TrueStartsWith prefix "" False(Cons prefixHead prefixTail prefix, Cons symbolHead symbolTail symbol, StartsWithChar prefixHead prefixTail symbolHead symbolTail result) => StartsWith prefix symbol result
#StartsWithChar Source
class StartsWithChar :: Symbol -> Symbol -> Symbol -> Symbol -> Boolean -> Constraintclass StartsWithChar prefixHead prefixTail symbolHead symbolTail result | prefixHead prefixTail symbolHead symbolTail -> result
Instances
(StartsWith prefixTail symbolTail result) => StartsWithChar char prefixTail char symbolTail resultStartsWithChar prefixHead prefixTail symbolHead symbolTail False
#untypedElement Source
untypedElement :: forall props children. UntypedProps props => Children children => Namespace -> String -> Record props -> children -> JSX- Modules
- Solid.
Action - Solid.
Async - Solid.
Component - Solid.
Component. JS - Solid.
Context - Solid.
Control - Solid.
DOM - Solid.
DOM. Aria - Solid.
DOM. AttrValue - Solid.
DOM. HTML - Solid.
DOM. SVG - Solid.
Errors - Solid.
Internal. Action - Solid.
Internal. Equality - Solid.
Internal. Identity - Solid.
Internal. Names - Solid.
Internal. Optimistic - Solid.
Internal. Props - Solid.
Internal. Reply - Solid.
Internal. Serializable - Solid.
Internal. ServerFunction - Solid.
Internal. Setup - Solid.
Internal. Store - Solid.
Internal. Tracked - Solid.
Internal. View - Solid.
JSX - Solid.
Lifecycle - Solid.
Meta - Solid.
Owner - Solid.
Reactivity - Solid.
Root - Solid.
Router - Solid.
Router. Action - Solid.
Router. Path - Solid.
Router. Query - Solid.
Router. Search - Solid.
Setup - Solid.
Signal - Solid.
Start. Middleware - Solid.
Start. RequestEvent - Solid.
Start. Response - Solid.
Start. ServerFunction - Solid.
Start. UseServer - Solid.
Store - Solid.
Testing - Solid.
Utility - Solid.
Web - Solid.
Web. SSR