Header
A lightweight, responsive header component used for showcasing hero unit style content.
Basic Example
Here’s an example of a basic header component. Usually, this component is used on homepages and landing pages and has an attractive background image.
Inkline Header
This is a header paragraph lorem ipsum dolor sit amet.
Color Variants
You can set the style of a <i-header> using the color property.
Inkline Light Header
This is a header paragraph lorem ipsum dolor sit amet.
Inkline Dark Header
This is a header paragraph lorem ipsum dolor sit amet.
Inkline Primary Header
This is a header paragraph lorem ipsum dolor sit amet.
Size Variants
You’re able to use the size modifier to control the size of your header, using one of the available sizes: sm, md, and lg. The default size is set to md.
Small Inkline Header
This is a small header paragraph lorem ipsum dolor sit amet.
Medium Inkline Header
This is a small header paragraph lorem ipsum dolor sit amet.
Large Inkline Header
This is a small header paragraph lorem ipsum dolor sit amet.
Fullscreen
You can make headers cover the whole screen width and height (using vw and vh) by adding the fullscreen property. The width and height do not overflow the size of the parent container.
Fullscreen Inkline Header
This is a fullscreen header paragraph lorem ipsum dolor sit amet.
Cover Background
The goal of cover background images on a website is to cover the entire browser window at all times. Simply set a background for the header
Cover Inkline Header
This is a cover background header paragraph lorem ipsum dolor sit amet.
Configuration
Props
Use props to modify the component’s design and behavior.
- Property
colorType'primary' | 'light' | 'dark'Default'light'Description The color variant of the header - Property
coverTypeBooleanDefaultfalseDescription Display the header background as cover, always covering the whole header width or height - Property
fluidTypeBooleanDefaultfalseDescription Display the inner content container as fluid, covering 100% of the header width - Property
fullscreenTypeBooleanDefaulttrueDescription Display the header as fullscreen, covering 100% screen height and 100% screen width - Property
sizeType'sm' | 'md' | 'lg'Default'md'Description The size variant of the header
Events
Use events to react to something happening inside the component.
CSS Variables
Read more about configuring Inkline’s Design System variables to update the look and feel of the component.
- Property
----backgroundValuecolor('light')Description The background of the header component - Property
----colorValuecontrast-color($color-light)Description The color of the header component - Property
----padding-topValue10remDescription The padding top of the header component - Property
----padding-rightValue0Description The padding right of the header component - Property
----padding-bottomValue10remDescription The padding bottom of the header component - Property
----padding-leftValue0Description The padding left of the header component - Property
----paddingValuevar(----padding-top) var(----padding-right) var(----padding-bottom) var(----padding-left)Description The padding of the header component