We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53265ad commit 9d487bfCopy full SHA for 9d487bf
src/atoms/Title.vue
@@ -57,4 +57,15 @@ const CONFIG = useNestedProp({
57
>
58
{{ CONFIG.subtitle.text }}
59
</div>
60
+ <div
61
+ :data-cy="CONFIG.subtitle.cy"
62
+ v-if="CONFIG.subtitle.text"
63
+ :style="`width: calc(100% - ${CONFIG.title.paddingLeft + CONFIG.title.paddingRight}px); text-align:${CONFIG.title.textAlign};color:${
64
+ CONFIG.subtitle.color
65
+ };font-size:${CONFIG.subtitle.fontSize}px;font-weight:${
66
+ CONFIG.subtitle.bold ? 'bold' : ''
67
+ };padding-left:${CONFIG.title.paddingLeft}px;padding-right:${CONFIG.title.paddingRight}px;`"
68
+ >
69
+ <slot/>
70
+ </div>
71
</template>
0 commit comments