2 ( view, text, textContent, image, scrollView, list, input, textarea
6{-| LynxJS native UI elements.
9@docs view, text, textContent, image, scrollView, list, input, textarea
19{-| Alias for `VirtualDom.Node`.
25{-| Alias for `VirtualDom.Attribute`.
27type alias Attribute msg =
28 VirtualDom.Attribute msg
31{-| A generic container element, equivalent to `<view>` in LynxJS.
32This is the primary layout building block.
34 view [ Lynx.Attributes.flexDirection Row ]
35 [ text [] [ textContent "Hello" ]
38view : List (Attribute msg) -> List (Node msg) -> Node msg
40 VirtualDom.node "view"
43{-| A text container element, equivalent to `<text>` in LynxJS.
44Use this when you need to apply styles or attributes to text.
46 text [ Lynx.Attributes.fontSize 18 ]
47 [ textContent "Styled text" ]
49text : List (Attribute msg) -> List (Node msg) -> Node msg
51 VirtualDom.node "text"
54{-| Create a plain text node. In LynxJS, this is auto-wrapped in a `<text>`
57 textContent "Hello World!"
59textContent : String -> Node msg
64{-| An image element, equivalent to `<image>` in LynxJS.
66 image [ Lynx.Attributes.src "https://example.com/photo.jpg" ] []
68image : List (Attribute msg) -> List (Node msg) -> Node msg
70 VirtualDom.node "image"
73{-| A scrollable container, equivalent to `<scroll-view>` in LynxJS.
75 scrollView [ Lynx.Attributes.scrollDirection Vertical ]
76 [ view [] [ textContent "Item 1" ]
77 , view [] [ textContent "Item 2" ]
80scrollView : List (Attribute msg) -> List (Node msg) -> Node msg
82 VirtualDom.node "scroll-view"
85{-| A list element for efficient rendering of long lists.
86Equivalent to `<list>` in LynxJS.
88list : List (Attribute msg) -> List (Node msg) -> Node msg
90 VirtualDom.node "list"
93{-| A text input element.
95input : List (Attribute msg) -> List (Node msg) -> Node msg
97 VirtualDom.node "input"
100{-| A multi-line text input element.
102textarea : List (Attribute msg) -> List (Node msg) -> Node msg
104 VirtualDom.node "textarea"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list