Getting started
IntroductionCustomizationInstallationLicence
Core
FoundationsRebooted elementsColorsBreakpointsZ-IndexBase component
Utilities
Layout systems
Flex systemGrid system
Design
BackgroundBordersDisplayFloatingInteractionsOpacityOverflowPositioningShadowsSizingSpacingTextVisibility
Components
Form elements
JTB-CheckboxJTB-InputJTB-RadioJTB-SelectJTB-SwitchJTB-Textarea
Others
JTB-AlertJTB-BreadcrumbJTB-ButtonJTB-ContextMenuJTB-NotificationJTB-TableJTB-Tag
Layout
JTB-Container-FluidJTB-DropdownJTB-PanelJTB-Tooltip

JTB-Panel

A flexible container for organizing and displaying content efficiently.

About

The JTB-Panel is a flexible and structured container designed to hold and organize content efficiently. Whether you're displaying text, images, interactive elements, or other UI components, the JTB-Panel provides a clean and adaptable layout solution that enhances readability and user experience.

Its customizable design allows it to fit seamlessly into any web application, ensuring content is presented in a well-organized and visually appealing manner.

In JTB_MD, the JTB-Panel's element tag is defined as <jtb-panel>.

How to use

To create a JTB-Panel in your projects, use the <jtb-panel> tag in the way that best suits your content needs. Whether you add elements dynamically with JavaScript, directly in HTML, or through server-side languages like PHP, the structure remains adaptable. As long as the component is correctly initialized, JTB_MD will handle its rendering seamlessly.

Once you've defined your panel and specified its content, you can customize its appearance using utility classes or JavaScript interactions, ensuring it aligns with your design requirements.

Hello! I am a good boi!

Customization

To customize your panels you can simply use their pre-defined attributes thich allow you to tailor the element to meet your specific requirements and preferences via modifying its appearance and design.

Style and appearance

format

To change the format of the panel element, use the format attribute with your desired value.

Available options are: default | inverse.

Default panel looks like this. Inverse panel looks like this.
size

To adjust the size of the panel element, use the size attribute to specify your desired value.

Available options are: xs | sm | md | lg | xl.

xs makes panel look like this.sm makes panel look like this.md makes panel look like this.lg makes panel look like this.xl makes panel look like this.
shape

To change the shape of the panel element, use the shape attribute with your desired value.

Available options are: default | rect.

Default panel element Rectengular panel element.

Listeners & Callbacks

JTB Panels are components built upon the jtbComponent element. As a result, they inherit all global listeners and callbacks, ensuring consistent event handling. For a detailed overview, refer to the Base component - Core page.

Methods

Similar to listeners and callbacks, JTB Panels also inherit all methods from the base component, enabling seamless functionality. For a complete list of available methods, visit the Base component - Core page.

API

While each property on its own brings unique changes to the elements, combining them can help you create the perfect one.

For making it easier to navigate through all the attributes, we’ve created a comprehensive table for you. Below, you can find a list of all and their uses.

CategoryPropertyTypePossible valuesDescription
Style & appearanceformatstring
defaultinverse
Specifies the format of the alert.
sizestring
xssmmdlgxl
Specifies the size of the alert.
shapestring
defaultrectpill
Specifies the shape of the alert.
Listeners & callbacks_createfunction-The state listener that is invoked immediately after the element is appended to the DOM.
_destroyfunction-The state listener that is invoked right before the element is removed from the DOM.
_showfunction-The state listener that is invoked when the element element becomes visible.
_hidefunction-The state listener that is invoked when the element becomes hidden.
PREVIOUSJTB-Dropdown
NEXTJTB-Tooltip

Copyright © 2025 JTBLabs - All rights reserved.