mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-27 14:04:42 +00:00
19 lines
466 B
Vue
19 lines
466 B
Vue
<template>
|
|
<div
|
|
class="flex items-center gap-4 rounded-md border border-l-4 border-solid border-wp-hint-warn-200 bg-wp-hint-warn-100 p-4 font-bold text-gray-700"
|
|
>
|
|
<Icon v-if="!textOnly" name="alert" class="flex-shrink-0" />
|
|
<slot>
|
|
<span class="whitespace-pre-wrap">{{ text }}</span>
|
|
</slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import Icon from './Icon.vue';
|
|
|
|
defineProps<{
|
|
textOnly?: boolean;
|
|
text?: string;
|
|
}>();
|
|
</script>
|