shadcn-vue icon indicating copy to clipboard operation
shadcn-vue copied to clipboard

docs: add sub components example

Open Lol1chw opened this issue 1 year ago โ€ข 5 comments
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.

Lol1chw avatar Jul 07 '24 16:07 Lol1chw