quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
205 lines • 5.54 kB
JSON
{
"type": "component",
"meta": {
"docsUrl": "https://v1.quasar.dev/vue-components/chip"
},
"props": {
"ripple": {
"type": [
"Boolean",
"Object"
],
"desc": "Configure material ripple (disable it by setting it to 'false' or supply a config object)",
"default": true,
"examples": [
false,
"{ early: true, center: true, color: 'teal', keyCodes: [] }"
],
"category": "style"
},
"dense": {
"type": "Boolean",
"desc": "Dense mode; occupies less space",
"category": "style"
},
"size": {
"type": "String",
"desc": "QChip size name or a CSS unit including unit name",
"examples": [
"xs",
"sm",
"md",
"lg",
"xl",
"25px",
"2rem"
],
"category": "style",
"addedIn": "v1.2.2"
},
"dark": {
"type": "Boolean",
"desc": "Notify the component that the background is a dark color",
"category": "style",
"addedIn": "v1.3.0"
},
"icon": {
"type": "String",
"desc": "Icon name following Quasar convention; Make sure you have the icon library installed unless you are using 'img:' prefix",
"examples": [
"map",
"ion-add",
"img:https://cdn.quasar.dev/logo/svg/quasar-logo.svg",
"img:statics/path/to/some_image.png"
],
"category": "content"
},
"icon-right": {
"type": "String",
"desc": "Icon name following Quasar convention; Make sure you have the icon library installed unless you are using 'img:' prefix",
"examples": [
"map",
"ion-add",
"img:https://cdn.quasar.dev/logo/svg/quasar-logo.svg",
"img:statics/path/to/some_image.png"
],
"category": "content"
},
"icon-remove": {
"type": "String",
"desc": "Icon name following Quasar convention; Make sure you have the icon library installed unless you are using 'img:' prefix",
"examples": [
"map",
"ion-add",
"img:https://cdn.quasar.dev/logo/svg/quasar-logo.svg",
"img:statics/path/to/some_image.png"
],
"category": "content"
},
"icon-selected": {
"type": "String",
"desc": "Icon name following Quasar convention; Make sure you have the icon library installed unless you are using 'img:' prefix",
"examples": [
"map",
"ion-add",
"img:https://cdn.quasar.dev/logo/svg/quasar-logo.svg",
"img:statics/path/to/some_image.png"
],
"category": "content",
"addedIn": "v1.14.6"
},
"label": {
"type": [
"String",
"Number"
],
"desc": "Chip's content as string; overrides default slot if specified",
"examples": [
"John Doe",
"Book"
],
"category": "content"
},
"color": {
"type": "String",
"desc": "Color name for component from the Quasar Color Palette",
"examples": [
"primary",
"teal-10"
],
"category": "style"
},
"text-color": {
"type": "String",
"desc": "Overrides text color (if needed); Color name from the Quasar Color Palette",
"examples": [
"primary",
"teal-10"
],
"category": "style"
},
"value": {
"type": "Boolean",
"desc": "Model of the component determining if QChip should be rendered or not",
"default": true,
"category": "model"
},
"selected": {
"type": "Boolean",
"sync": true,
"desc": "Model for QChip if it's selected or not",
"category": "model"
},
"square": {
"type": "Boolean",
"desc": "Sets a low value for border-radius instead of the default one, making it close to a square",
"category": "style"
},
"outline": {
"type": "Boolean",
"desc": "Display using the 'outline' design",
"category": "style"
},
"clickable": {
"type": "Boolean",
"desc": "Is QChip clickable? If it's the case, then it will add hover effects and emit 'click' events",
"category": "state"
},
"removable": {
"type": "Boolean",
"desc": "If set, then it displays a 'remove' icon that when clicked the QChip emits 'remove' event",
"category": "state"
},
"tabindex": {
"type": [
"Number",
"String"
],
"desc": "Tabindex HTML attribute value",
"examples": [
"0",
"100"
],
"category": "general"
},
"disable": {
"type": "Boolean",
"desc": "Put component in disabled mode",
"category": "state"
}
},
"slots": {
"default": {
"desc": "This is where QChip content goes, if not using 'label' property"
}
},
"events": {
"click": {
"desc": "Emitted on QChip click if 'clickable' property is set",
"params": {
"evt": {
"type": "Object",
"desc": "JS event object"
}
}
},
"update:selected": {
"desc": "Used by Vue on 'selected.sync' prop for updating its value",
"params": {
"state": {
"type": "Boolean",
"desc": "Selected state"
}
}
},
"remove": {
"desc": "Works along with 'value' and 'removable' prop. Emitted when toggling rendering state of the QChip",
"params": {
"state": {
"type": "Boolean",
"desc": "Render state (render or not)"
}
}
}
}
}