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: [sortable-list] fix #376 - update shared option story #377

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading