feat: Captain settings header component (#11912)
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
<script setup>
|
||||||
|
import SettingsHeader from './SettingsHeader.vue';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Story
|
||||||
|
title="Captain/PageComponents/SettingsHeader"
|
||||||
|
:layout="{ type: 'grid', width: '800px' }"
|
||||||
|
>
|
||||||
|
<Variant title="Default">
|
||||||
|
<div class="px-6 py-4 bg-n-background">
|
||||||
|
<SettingsHeader
|
||||||
|
heading="General Settings"
|
||||||
|
description="Configure general preferences for your workspace."
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Variant>
|
||||||
|
|
||||||
|
<Variant title="Long Description">
|
||||||
|
<div class="px-6 py-4 bg-n-background">
|
||||||
|
<SettingsHeader
|
||||||
|
heading="Integrations"
|
||||||
|
description="Manage and configure third-party integrations such as Slack, Zapier, and Webhooks to enhance your workflow."
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Variant>
|
||||||
|
</Story>
|
||||||
|
</template>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<script setup>
|
||||||
|
defineProps({
|
||||||
|
heading: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
description: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<header class="flex flex-col items-start gap-2">
|
||||||
|
<h2 class="text-n-slate-12 text-base font-medium">{{ heading }}</h2>
|
||||||
|
<p class="text-n-slate-11 text-sm">{{ description }}</p>
|
||||||
|
</header>
|
||||||
|
</template>
|
||||||
Reference in New Issue
Block a user