Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
762 B

<script>
import { H6, Sub2 } from "../Typography"
import Icon from "../Common/Icon.svelte"
export let _bb
export let title = ""
export let subtitle = ""
export let icon = ""
$: useIcon = !!icon
$: useSubtitle = !!subtitle
</script>
<div class="card-header">
{#if useIcon}
<div class="card-header__icon">
<Icon {icon} />
</div>
{/if}
<div class="card-header__title">
<H6 text={title} />
{#if useSubtitle}
<Sub2 text={subtitle} />
{/if}
</div>
</div>
<style>
.card-header {
display: flex;
flex-flow: row nowrap;
padding: 10px;
}
.card-header__icon {
flex: 0;
padding: 10px;
}
.card-header__title {
display: flex;
flex-flow: column nowrap;
flex: 1;
}
</style>