Elements
Header
A simple HTML header element
Configuration
The header
element inherits all the attributes of the base Element
In addition, it has the following attributes:
Example
Input:
SVELTE
<script lang="ts">
import { Base, Form } from 'conjure';
const form = Base.newForm([
{
type: 'header',
text: 'Sample Header at default h1 size'
},
{
type: 'header',
text: 'Another header at h4 size',
size: 4,
params: {
class: 'text-orange-500'
}
}
] as const);
</script>
<Form {form} />
Output: