Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS packages for popular frameworks #3254

Open
1 task done
pngwn opened this issue Feb 21, 2023 · 1 comment
Open
1 task done

JS packages for popular frameworks #3254

pngwn opened this issue Feb 21, 2023 · 1 comment
Labels
brainstorming Brainstorming issue enhancement New feature or request svelte Frontend-related issue (JS)

Comments

@pngwn
Copy link
Member

pngwn commented Feb 21, 2023

  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
Dropping in script tags with CDN links + using custom elements is not typical when using a modern frontend stack. It would be nice if we had some component specific wrappers around the web component to make people's lives easier.

Describe the solution you'd like
Something like this:

Svelte

<script>
 import Gradio from '@gradio/svelte';
</script>

<Gradio space="user/space" on:data={({ detail }) => console.log(detail)} />

React

import Gradio from '@gradio/react';

export default function Profile() {
  return (
    <Gradio
      space="user/space"
      onData={(d) => console.log(d)}
    />
  )
}

Additional context
Add any other context or screenshots about the feature request here.

#3238

Related to but different from #2516

@pngwn pngwn added enhancement New feature or request brainstorming Brainstorming issue svelte Frontend-related issue (JS) labels Feb 21, 2023
@Ghostubborn
Copy link

Any progress now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brainstorming Brainstorming issue enhancement New feature or request svelte Frontend-related issue (JS)
Projects
None yet
Development

No branches or pull requests

2 participants