You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extract the logic of ComponentPickerGrid so the "grid" is only the UI that depends on props
make ComponentPicker use ComponentPickerGrid based on a prop called "kind" set to kind: 'grid'
ComponentPickerList
the ComponentPickerList should be a way simpler solution than the grid that looks something like this (more on this down below):
add a new ComponentPickerList.vue component
make ComponentPicker use ComponentPickerList based on a prop called "kind" set to kind: 'list'
A list should exist out of v-for of the sub component: ComponentPickerListItem.vue (also to be made)
ComponentPickerListItem
should receive a single filePath: string prop
it should look very simple like the example screenshot above
it should have a hover color
based on the filePath the list item should retrieve the vue-docgen object (like ApiCards do) and it should extract these fields from that object: (1) the component "name" field, (2) the component "description" field.
use the name and description to render the list item
The text was updated successfully, but these errors were encountered:
ComponentPicker
ComponentPicker.vue
componentComponentPickerGrid
so the "grid" is only the UI that depends on propsComponentPicker
useComponentPickerGrid
based on a prop called "kind" set tokind: 'grid'
ComponentPickerList
the
ComponentPickerList
should be a way simpler solution than the grid that looks something like this (more on this down below):ComponentPickerList.vue
componentComponentPicker
useComponentPickerList
based on a prop called "kind" set tokind: 'list'
v-for
of the sub component:ComponentPickerListItem.vue
(also to be made)ComponentPickerListItem
filePath: string
propfilePath
the list item should retrieve the vue-docgen object (like ApiCards do) and it should extract these fields from that object: (1) the component "name" field, (2) the component "description" field.The text was updated successfully, but these errors were encountered: