Skip to content

docs(readme): add features, installation, and troubleshooting sections#2

Merged
jlukic merged 1 commit intoSemantic-Org:mainfrom
robinlahtinen:patch-1
Aug 22, 2025
Merged

docs(readme): add features, installation, and troubleshooting sections#2
jlukic merged 1 commit intoSemantic-Org:mainfrom
robinlahtinen:patch-1

Conversation

@robinlahtinen
Copy link
Copy Markdown
Contributor

@robinlahtinen robinlahtinen commented Aug 10, 2025

This pull request significantly expands and improves the README.md documentation for the @semantic-org/astro-lit package. The new documentation provides clearer installation and usage instructions, highlights key features, and adds troubleshooting guidance for common issues. It also includes badges for NPM version, downloads, and license for better project visibility.

Documentation improvements:

  • Added project badges (NPM version, downloads, license) to the top of the README.md for enhanced visibility.
  • Expanded installation instructions, including prerequisites and step-by-step setup for different package managers.
  • Added detailed usage examples for creating and importing Lit components, using third-party Lit components, and enabling client-side hydration with Astro directives.
  • Included instructions for enabling and using experimental decorators in TypeScript with Lit.

Troubleshooting and contribution guidance:

  • Added a troubleshooting section covering issues like browser global interference, component updates in development, and strict package manager errors (with solutions).
  • Provided clear guidelines for contributing, including how to report bugs and submit pull requests.

Fixes: #1

Comment thread README.md

In the following example, you import a third-party button component and use it with its custom HTML tag, `<sbb-button>`:

```astro title="src/pages/buttons.astro"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when I try this, it is not possible to combine this with client:load. On the other hand, when using <SbbButton..> I get "Astro Type Erros" when setting attributes/properties. Don't know if I miss something here..

@jlukic
Copy link
Copy Markdown
Member

jlukic commented Aug 22, 2025

Thank you for your contribution!

@jlukic jlukic merged commit 3857303 into Semantic-Org:main Aug 22, 2025
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.

Third party web components build with lit

3 participants