GithubHelp home page GithubHelp logo

ptkdev-boilerplate / svelte-webcomponent-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
61.0 5.0 6.0 4.87 MB

๐Ÿ— Create your HTML5 Web Component with Svelte. Made your web components with this user-friendly boilerplate

Home Page: https://npmjs.com/package/@ptkdev/svelte-webcomponent-boilerplate

License: Other

Shell 1.55% TypeScript 65.76% SCSS 3.49% Svelte 4.19% Smarty 1.60% HTML 1.76% JavaScript 19.49% PHP 2.16%
svelte svelte-components svelte-webcomponents svelte-example webcomponents html5 boilerplate svelte-boilerplate typescript github-template

svelte-webcomponent-boilerplate's People

Contributors

ptkdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

svelte-webcomponent-boilerplate's Issues

[BUG] Cannot export variabiles of webcomponents attributes with kebab-case syntax

Svelte refs:

#3852 #875

Example

HTML:

<my-component header-text="hello"></my-component>

Svelte file:

<svelte:options tag="my-component" />
<script>
	export let headerText;
</script>

<div>
{headerText}
</div>

<style lang="scss">
</style>

headerText is undefined.

Workaround:

You can use {$$props["header-text"]} but if user change the html attribute, svelte, don't re-render html and webcomponent show always "hello".

Cannot find name 'logger' on npm run setup

Versions

  • App Version: v2.0.1
  • Node Version: v14.19.1
  • Operating System: mac os (m1)
  • Browser: Google Chrome Version 100.0.4896.127

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. ...
  2. ...
  3. ...

Screenshots (Optional)

Screen Shot 2565-04-28 at 22 12 02

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.