PostHog / squeak

A Q&A widget for your docs
https://squeak.posthog.com/
MIT License
178 stars 15 forks source link

Add tabs for JS vs React snippets, add snippet types #180

Open corywatilo opened 2 years ago

corywatilo commented 2 years ago

We only show the JS embed code in Squeak! settings, but we should have tabs with two code options:

  1. React snippet (default)
  2. Existing JS snippet

Variables should be automatically populated for both (like how we currently do for the vanilla JS code).

corywatilo commented 2 years ago

Cory to design this with different snippet types in mind: