Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

Reorder

Reorder is a component that allows you to change the order of items using drag and drop.

Source@yamada-ui/reorder

Theming

The Reorder is a multi part component.

export const Reorder: ComponentMultiStyle<"Reorder"> = {
baseStyle: {
container: {
w: "100%",
},
item: {
h: "100%",
w: "100%",
_selected: {
boxShadow: ["md", "dark-md"],
},
},
trigger: {
color: ["blackAlpha.300", "whiteAlpha.300"],
},
},
sizes: {
sm: {
item: { p: "sm", rounded: "base" },
},
md: {
item: { p: "md", rounded: "md" },
},
normal: {
item: { p: "normal", rounded: "lg" },
},
lg: {
item: { p: "lg", rounded: "xl" },
},
},
variants: {
elevated: {
item: {
bg: ["white", "black"],
boxShadow: ["base", "dark-md"],
},
},
outline: {
item: {
bg: ["white", "black"],
borderWidth: "1px",
},
},
unstyled: {
item: { p: 0, rounded: 0, _selected: { boxShadow: "unset" } },
},
},
defaultProps: {
size: "md",
variant: "outline",
},
}
Copied!

Edit this page on GitHub

PreviousCarouselNextResizable