Skip to content

docs(examples): add examples to repository #440

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

mcous
Copy link
Collaborator

@mcous mcous commented May 25, 2025

Overview

This PR tries to take all the existing suggestions, patterns, and ideas in #284 and condense them into a set of examples for testing

  • Svelte 5 components
  • Callback events
  • Snippets
  • bindable()
  • Contexts
  • Deprecated Svelte 4 features (slots, on: events)

Rendered output

Change log

  • Collect examples from Svelte 5 feedback and support #284 and add them to an examples directory
  • Swap doctoc for remark-cli to resolve ToC bugs and to get access to other plugins, like remark-code-import to inject component test files into snippets in the documentation
  • Update all-contributors from folks in the thread and various other recent issues
  • Open a companion PR in testing-library/docs to point here for most examples

@mcous mcous force-pushed the docs/examples branch 3 times, most recently from 7a0295f to a3a63cd Compare May 25, 2025 19:25
- [Basic](./basic)
- [Events](./events)
- [Snippets](./snippets)
- [Contexts]('./contexts)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
- [Contexts]('./contexts)
- [Contexts](./contexts)


## `bind.test.js`

```svelte file=./bind.test.js
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
```svelte file=./bind.test.js
```js file=./bind.test.js

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