Skip to content

feat: add SolidJS integration#15

Open
quaid-perkins wants to merge 2 commits intolochie:mainfrom
quaid-perkins:solid-js
Open

feat: add SolidJS integration#15
quaid-perkins wants to merge 2 commits intolochie:mainfrom
quaid-perkins:solid-js

Conversation

@quaid-perkins
Copy link
Copy Markdown

Implemented support for the SolidJS framework.

Additions

  • SolidJS component: packages/web-hapics/src/solid/useWebHaptics.tsx.
  • SolidJS example site: apps/solid-example.
  • SolidJS usage tab on site: site/src/surfaces/usage/index.tsx.
  • SolidJS logo for the usage tab: site/src/surfaces/usage/logos.tsx
  • SKILL.md integration.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 4, 2026

@quaid-perkins is attempting to deploy a commit to the Lochie's projects Team on Vercel.

A member of the Team first needs to authorize it.

@quaid-perkins
Copy link
Copy Markdown
Author

Re-based to current version.

@quaid-perkins
Copy link
Copy Markdown
Author

I updated the SolidJS hook so that the options are fully reactive. (Updated implementation of #30 )

If the developer does want to update the instance options, they will need to use a createStore for the WebHapticsOptions. If the options are static, a normal inline object can still be passed.

import { createStore } from "solid-js/store";
import { useWebHaptics } from "web-haptics/solid";

const [hapticsOptions, setHapticsOptions] = createStore({ debug: true });
const { trigger } = useWebHaptics(hapticsOptions);

This should be documented in the main documentation and the SKILLS.md. (TODO)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant