UNPKG

@nitrogenbuilder/core

Version:

CMS Agnostic Page Builder for React projects

1 lines 712 B
import{jsx as _jsx}from"react/jsx-runtime";import{SortableTree}from"./SortableTree";export default{title:"Examples/Tree/Sortable"};const Wrapper=({children:e})=>_jsx("div",{style:{maxWidth:600,padding:10,margin:"0 auto",marginTop:"10%"},children:e});export const AllFeatures=()=>_jsx(Wrapper,{children:_jsx(SortableTree,{collapsible:!0,indicator:!0,removable:!0})});export const BasicSetup=()=>_jsx(Wrapper,{children:_jsx(SortableTree,{})});export const DropIndicator=()=>_jsx(Wrapper,{children:_jsx(SortableTree,{indicator:!0})});export const Collapsible=()=>_jsx(Wrapper,{children:_jsx(SortableTree,{collapsible:!0})});export const RemovableItems=()=>_jsx(Wrapper,{children:_jsx(SortableTree,{removable:!0})});