vueless
Version:
Vue Styleless UI Component Library, powered by Tailwind CSS.
51 lines (50 loc) • 1.03 kB
text/typescript
export default /*tw*/ {
wrapper: "relative inline-block h-max",
dropdownBadge: {
base: "{UBadge}",
variants: {
disabled: {
true: "opacity-(--vl-disabled-opacity) pointer-events-none",
},
},
},
toggleIcon: {
base: "{UIcon} transition duration-300 -mr-0.5",
defaults: {
size: {
sm: "2xs",
md: "xs",
lg: "xs",
},
},
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: {
color: "primary",
size: "md",
variant: "solid",
labelKey: "label",
valueKey: "id",
yPosition: "bottom",
xPosition: "left",
round: false,
searchable: false,
multiple: false,
labelDisplayCount: 2,
/* icons */
toggleIcon: "keyboard_arrow_down",
},
};