vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
59 lines (58 loc) • 1.17 kB
text/typescript
export default /*tw*/ {
wrapper: "relative inline-block h-max",
dropdownButton: "{UButton} justify-between",
toggleIcon: {
base: "{UIcon} transition duration-300 -mr-1",
defaults: {
size: {
"2xs": "2xs",
xs: "xs",
sm: "sm",
md: "sm",
lg: "sm",
xl: "sm",
},
},
compoundVariants: [{ opened: true, class: "rotate-180" }],
},
listbox: {
base: "{UListbox} w-fit",
variants: {
yPosition: {
top: "bottom-full mb-1.5",
bottom: "top-full mt-1.5",
},
xPosition: {
left: "left-0",
right: "right-0",
},
},
defaults: {
size: {
"2xs": "sm",
xs: "sm",
sm: "md",
md: "md",
lg: "lg",
xl: "lg",
},
},
},
defaults: {
color: "primary",
size: "md",
variant: "solid",
labelKey: "label",
valueKey: "id",
yPosition: "bottom",
xPosition: "left",
searchable: false,
round: false,
square: false,
disabled: false,
multiple: false,
labelDisplayCount: 2,
/* icons */
toggleIcon: "keyboard_arrow_down",
},
};