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

docs(solid-virtual): Solid examples #658

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
45 changes: 45 additions & 0 deletions docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,51 @@
"children": [
{ "label": "Solid Virtual", "to": "framework/solid/solid-virtual" }
]
},
{
"label": "Examples",
"children": [
{
"to": "framework/solid/examples/fixed",
"label": "Fixed"
},
{
"to": "framework/solid/examples/variable",
"label": "Variable"
},
{
"to": "framework/solid/examples/dynamic",
"label": "Dynamic"
},
{
"to": "framework/solid/examples/sticky",
"label": "Sticky"
},
{
"to": "framework/solid/examples/infinite-scroll",
"label": "Infinite Scroll"
},
{
"to": "framework/solid/examples/smooth-scroll",
"label": "Smooth Scroll"
},
{
"to": "framework/solid/examples/table",
"label": "Table"
},
{
"to": "framework/solid/examples/padding",
"label": "Padding"
},
{
"to": "framework/solid/examples/scroll-padding",
"label": "Scroll Padding"
},
{
"to": "framework/solid/examples/window",
"label": "Window"
}
]
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"serve": "vite preview"
},
"dependencies": {
"@faker-js/faker": "^7.6.0",
"@faker-js/faker": "^8.3.1",
"@tanstack/react-virtual": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/react/sticky/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "vite"
},
"dependencies": {
"@faker-js/faker": "^7.6.0",
"@faker-js/faker": "^8.3.1",
"@tanstack/react-virtual": "^3.1.0",
"lodash": "^4.17.21",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "vite"
},
"dependencies": {
"@faker-js/faker": "^7.6.0",
"@faker-js/faker": "^8.3.1",
"@tanstack/react-table": "^8.7.9",
"@tanstack/react-virtual": "^3.1.0",
"react": "^18.2.0",
Expand Down
24 changes: 24 additions & 0 deletions examples/solid/dynamic/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
6 changes: 6 additions & 0 deletions examples/solid/dynamic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example

To run this example:

- `npm install` or `yarn`
- `npm run start` or `yarn start`
13 changes: 13 additions & 0 deletions examples/solid/dynamic/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Solid + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
21 changes: 21 additions & 0 deletions examples/solid/dynamic/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "tanstack-solid-virtual-example-dynamic",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"@faker-js/faker": "^8.3.1",
"@tanstack/solid-virtual": "3.0.1",
"solid-js": "^1.8.7"
},
"devDependencies": {
"typescript": "5.2.2",
"vite": "^5.1.3",
"vite-plugin-solid": "^2.10.1"
}
}
1 change: 1 addition & 0 deletions examples/solid/dynamic/public/vite.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.