Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 4x 4x | <template>
<div class="gs-item-inner" :data-field-id="fieldId">
<span class="gs-item-icon">
<font-awesome-icon :icon="icon" />
</span>
<span class="gs-item-label">{{ label }}</span>
<button class="btn btn-sm btn-danger remove-field-btn" type="button" :data-remove="fieldId">
<font-awesome-icon icon="fa-solid fa-times" />
</button>
</div>
</template>
<script setup lang="ts">
interface Props {
fieldId: string
label: string
icon: string
}
defineProps<Props>()
</script>
<style scoped>
.remove-field-btn {
position: absolute;
top: 4px;
right: 4px;
font-size: 13px;
display: flex;
padding: 3px;
}
</style>
|