shadcn-vue
shadcn-vue copied to clipboard
docs: add sub components example
trafficstars
๐ Linked issue
โ Type of change
- [x] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality like performance)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
Improves dx. Provides an example of how to make a component reusable.
Made changes to the passed component types to not be tied to a specific data model, now the type is based on a generic type.
Extended tasks.json for use in the example, the data for tasks.json is taken from DummyJSON.
Added a user to the schema for tasks.json.
Fixed filter-function type incompatibility in examples/tasks/components/DataTableFacetedFilter.vue
๐ธ Screenshots (if appropriate)
๐ Checklist
- [ ] I have linked an issue or discussion.
- [x] I have updated the documentation accordingly.