Files
hoppscotch/components/smart/DeletableChip.vue
liyasthomas 691629890f fix: form data request as body
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
2021-08-14 19:11:05 +05:30

29 lines
535 B
Vue

<template>
<span class="chip">
<i class="opacity-75 material-icons">attachment</i>
<span class="px-2"><slot></slot></span>
<ButtonSecondary
class="rounded close-button"
icon="close"
@click.native="$emit('chip-delete')"
/>
</span>
</template>
<style scoped lang="scss">
.chip {
@apply inline-flex;
@apply items-center;
@apply justify-center;
@apply rounded;
@apply pl-2;
@apply pr-0.5;
@apply bg-primary;
@apply border border-divider;
}
.close-button {
@apply p-0.5;
}
</style>