Skip to content

Commit

Permalink
Merge pull request #377 from PrestaShopCorp/376-sortable-list-storybo…
Browse files Browse the repository at this point in the history
…ok-update-shared-option-story

docs: [sortable-list] fix #376 - update shared option story
  • Loading branch information
mattgoud authored Sep 18, 2024
2 parents 8eddf24 + bd79392 commit 6d9faf6
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/components/sortable-list/stories/sortable-list.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,17 @@ export default {
options: {
control: 'object',
description:
'Options of the sortable list (see https://github.com/SortableJS/Sortable#options)',
'Options of the sortable list',
table: {
type: {
summary: 'type SortableOptionsProp',
detail: `
// see https://github.com/SortableJS/Sortable#options (see details for default values)
// Import
import { type SortableOptions } from '@prestashopcorp/puik-components'
`
},
defaultValue: {
summary: 'see details',
detail: `
Expand Down Expand Up @@ -508,7 +517,9 @@ export const Shared = {
source: {
code: `
<!--VueJS Snippet-->
let options = {
import { type SortableOptions } from '@prestashopcorp/puik-components';
let options: SortableOptionsProp = {
group: "shared", // Name of the group for shared sortable lists
};
Expand Down

0 comments on commit 6d9faf6

Please sign in to comment.