🤩
Windframe Import Update is finally here.

Pane

Angular Bootstrap Pane

Angular Bootstrap Pane is a component used in displaying information like a card. It is typically used in Chat UIs.

Importing the Contrast Angular Bootstrap Pane Module

To use the Contrast Angular Bootstrap Pane component in your project you need to import PaneModule.

typescript
import {PaneModule } from 'cdbangular';

Pane with Location Marker

Alongside the CDBPane component, we use other Contrast Angular Components, these components are, the CDBPanelTitle component to write headers in your pane, the CDBPanelText component to write texts or messages in your pane, the CDBPaneImage component component for your pane images.

We also import the CDBIcon component. Nesting the CDBIcon in our CDBPane allows us to have icons in our pane.

Angular Bootstrap Pane

html
html
<CDBPanel class="pan">
<CDBPane>
<CDBPaneImage size="md"
src="https://media.istockphoto.com/photos/beautiful-woman-wearing-brown-curly-hairstyle-picture-id495006065?s=170x170" ></CDBPaneImage>
<div class="ml-3">
<CDBPanelTitle>Warren Briggs</CDBPanelTitle>
<CDBPanelText small>Australia</CDBPanelText>
</div>
<p class="ml-auto mb-0 text-danger">
300m
<CDBIcon [fas]=true icon="map-marker-alt" ></CDBIcon>
</p>
</CDBPane>
</CDBPanel>

Pane with Dropdown

In this tutorial section, we nest the Contrast Angular Bootstrap Dropdown component, CDBDropDown, in the CDBPane component. With this, we now have dropdowns in our pane.

image info

html
html
<CDBPanel class="pan" >
<CDBPane>
<CDBPaneImage size="md"
src="https://media.istockphoto.com/photos/beautiful-woman-wearing-brown-curly-hairstyle-picture-id495006065?s=170x170" ></CDBPaneImage>
<div class="ml-3">
<CDBPanelTitle>Warren Briggs</CDBPanelTitle>
<CDBPanelText small>Breakfast</CDBPanelText>
</div>
<CDBDropDown cdbDropdown class="ml-auto">
<CDBDropDownToggle color="white">
<CDBIcon class="text-muted" [fas]=true icon="ellipsis-h" ></CDBIcon>
</CDBDropDownToggle>
<CDBDropDownMenu>
<CDBDropDownItem [disabled]='true'>Edit Profile</CDBDropDownItem>
<CDBDropDownItem [divider]='true' ></CDBDropDownItem>
<CDBDropDownItem>Action 1</CDBDropDownItem>
<CDBDropDownItem>Action 2</CDBDropDownItem>
</CDBDropDownMenu>
</CDBDropDown>
</CDBPane>
</CDBPanel>

Contrast Angular Bootstrap Pane Props

This section will build on your information about the props you get to use with the Contrast Angular Bootstrap Pane component. You will find out what these props do, their default values, and how you would use them in your code.

The table below lists other prop options of the CDBPane component.

NameTypeDefaultDescriptionExample
classStringAdds custom classesclass="myClass"

Trying to build out all user interfaces and components for your website or web app from scratch can become a very tedious task. A huge reason why we created Contrast Bootstrap to help reduce the amount of time we spend doing that, so we can focus on building some other aspects of the project. Contrast Bootstrap PRO consists of a UI Kit featuring over 10000+ component variants. Together with a template of 5 admin dashboards and 23+ additional multipurpose pages template for building almost any type of website or web app. You can view a demo and learn more about Contrast by clicking here.Download the free react template

ad-banner

Contrast Bootstrap PRO was built using the most popular CSS framework Bootstrap to help build your next landing, admin SAAS, prelaunch etc project with a clean, prebuilt and well documented template and UI components.Learn more about Contrast