Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.69 KB

ThreeLiner.md

File metadata and controls

44 lines (32 loc) · 1.69 KB

Three Liner

The <pxb-three-liner> can display up to three lines of stylized text or other ng-content. It is most commonly used within the context of a <pxb-app-bar> component where the text can grow / shrink as the App Bar is expanded and collapsed.

Usage

// your-component.html
<pxb-three-liner
    [title]="'Title Text / Page Title'"
    [subtitle]="'Subtitle Text / Second Line of Text'"
    [info]="'Info Text / Third Line of Text'"
/>

API

@Input Description Type Required Default
title First line content string no
subtitle Second line content string no
info Third line content string no

The following child element is projected into <pxb-three-liner>:

Selector Description Required Default
[pxb-title] First line content no
[pxb-subtitle] Second line content no
[pxb-info] Third line content no

Classes

Each PX Blue component has classes which can be used to override component styles:

Name Description
pxb-three-liner-info Styles applied to the dynamic content 3rd line
pxb-three-liner-subtitle Styles applied to the dynamic content 2nd line
pxb-three-liner-title Styles applied to the dynamic content 1st line