{"id":22836550,"url":"https://github.com/arksouthern/jsx","last_synced_at":"2025-04-24T03:14:24.977Z","repository":{"id":261854950,"uuid":"885516495","full_name":"arksouthern/jsx","owner":"arksouthern","description":"Four core JSX tools designed for Solid JS.","archived":false,"fork":false,"pushed_at":"2024-11-09T03:39:34.000Z","size":108,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T03:14:16.710Z","etag":null,"topics":["component-library","jsx","pattern-matching","solid-js"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arksouthern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-08T18:32:07.000Z","updated_at":"2025-01-08T21:28:51.000Z","dependencies_parsed_at":"2024-11-08T20:36:12.808Z","dependency_job_id":"d0296fbd-46f0-413a-a305-0a5873249add","html_url":"https://github.com/arksouthern/jsx","commit_stats":null,"previous_names":["arksouthern/jsx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arksouthern%2Fjsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arksouthern%2Fjsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arksouthern%2Fjsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arksouthern%2Fjsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arksouthern","download_url":"https://codeload.github.com/arksouthern/jsx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250552076,"owners_count":21449165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component-library","jsx","pattern-matching","solid-js"],"created_at":"2024-12-12T23:11:34.473Z","updated_at":"2025-04-24T03:14:24.946Z","avatar_url":"https://github.com/arksouthern.png","language":"TypeScript","readme":"\u003cp\u003e\n  \u003cimg width=\"100%\" src=\"https://assets.solidjs.com/banner?type=@arksouthern/jsx\u0026background=tiles\u0026project=%20\" alt=\"jsx\"\u003e\n\u003c/p\u003e\n\nFour core JSX tools designed for Solid JS\n\n## HandleSet\n\n```tsx\nimport HandleSet from \"@arksouthern/jsx/hx\";\n```\n```tsx\n\u003cdiv\u003e\n  \u003cHandleSet handlers={{\n    caroselNext: () =\u003e {...},\n    caroselBack: () =\u003e {...},\n    cardHovering: () =\u003e {...},\n    cardHoveringEnd: () =\u003e {...},\n  }}\u003e\n    {handlers =\u003e \n      \u003cdiv\u003e\n        \u003cbutton onClick={handlers.caroselBack}\u003e\n          Back\n        \u003c/button\u003e\n\n        \u003cimg \n          src={images[currentlySelected]}\n          onMouseEnter={handlers.cardHovering} \n          onMouseLeave={handlers.cardHoveringEnd}\n        /\u003e\n\n        \u003cbutton onClick={handlers.caroselNext}\u003e\n          Next\n        \u003c/button\u003e\n      \u003c/div\u003e\n    }\n  \u003c/HandleSet\u003e\n\u003c/div\u003e\n```\n\n## MatchAs\n\n```tsx\nimport MatchAs from \"@arksouthern/jsx/mx\";\n```\n```tsx\ntype FriendStatus =\n  | {as: \"followsYou\"}\n  | {as: \"youFollow\"}\n  | {as: \"mutual\", daysMutual: number}\n  | {as: \"none\"}\n```\n```tsx\n\u003cdiv\u003e\n  \u003cMatchAs over={friendStatus} match={{\n    followsYou: () =\u003e (\n      \u003cspan\u003eFollowing you\u003c/span\u003e\n    ),\n    youFollow: () =\u003e (\n      \u003cspan\u003eYou are following\u003c/span\u003e\n    ),\n    mutual: x =\u003e (\n      \u003cspan\u003eMutual {x.daysMutual} for days\u003c/span\u003e\n    ),\n    none: () =\u003e \u003c\u003e\u003c/\u003e,\n  }} /\u003e\n\u003c/div\u003e\n```\n\n## A.* Div\n\n```tsx\nimport A from \"@arksouthern/jsx/ax\";\n```\n### Not Using A.* Div\n```tsx\n\u003cdiv\u003e\n  \u003cdiv\u003e\n    \u003cdiv\u003e\n      \u003cinput placeholder=\"Search\" /\u003e\n    \u003c/div\u003e\n    \u003cdiv\u003e\n      \u003cdiv\u003e\n        \u003cbutton\u003e Back \u003c/button\u003e\n        \u003cbutton\u003e Next \u003c/button\u003e\n      \u003c/div\u003e\n      \u003cdiv\u003e\n        \u003cbutton\u003e Help \u003c/button\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n  \u003cdiv\u003e\n    \u003cMainContent\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n### A.* Div Example\n```tsx\n\u003cA.AppPage\u003e\n  \u003cA.NavBar\u003e\n    \u003cA.LeftSide\u003e\n      \u003cinput placeholder=\"Search\" /\u003e\n    \u003c/A.LeftSide\u003e\n    \u003cA.RightSide\u003e\n      \u003cA.HistoryButtons\u003e\n        \u003cbutton\u003e Back \u003c/button\u003e\n        \u003cbutton\u003e Next \u003c/button\u003e\n      \u003c/A.HistoryButtons\u003e\n      \u003cA.HelpOpener\u003e\n        \u003cbutton\u003e Help \u003c/button\u003e\n      \u003c/A.HelpOpener\u003e\n    \u003c/A.RightSide\u003e\n  \u003c/A.NavBar\u003e\n  \u003cA.Main\u003e\n    \u003cMainContent\u003e\n  \u003c/A.Main\u003e\n\u003c/A.AppPage\u003e\n```\n\n## VarSet\n\n```tsx\nimport VarSet from \"@arksouthern/jsx/vx\";\n```\n```tsx\n\u003cdiv\u003e\n  \u003cVarSet \n    imageUrl={images[currentlySelected].url}\n    profile={friends[currentlySelected].profile}\n    recentPost={posts.filter(bySelected).sort(byNewest)[0]}\n  \u003e\n    {props =\u003e \n      \u003ca href={props.profile.url}\u003e\n        \u003cimg src={props.imageUrl}\u003e\n        \u003cp\u003e{props.recentPost.previewText}\u003c/p\u003e\n      \u003c/a\u003e\n    }\n  \u003c/HandleSet\u003e\n\u003c/div\u003e\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farksouthern%2Fjsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farksouthern%2Fjsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farksouthern%2Fjsx/lists"}