Styled Div Components
Description
The Div component is a styled wrapper based on styled.div from Emotion. It provides a flexible and reusable way to apply styles consistently across different UI elements. The library also includes multiple predefined Div components for various use cases.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
display |
string |
block |
Defines the CSS display property. Supports 'flex', 'grid', etc. |
flexDirection |
'row' | 'row-reverse' | 'column' | 'column-reverse' |
undefined |
Sets the flex direction when using flexbox. |
justifyContent |
string |
undefined |
Aligns children within the div along the main axis. |
alignItems |
string |
undefined |
Aligns children within the div along the cross-axis. |
gap |
string, number |
undefined |
Specifies the spacing between child elements. |
padding |
string, number |
undefined |
Defines padding inside the div. |
margin |
string, number |
undefined |
Defines margin outside the div. |
position |
'static', 'relative', 'absolute', 'fixed', 'sticky' |
undefined |
Sets the CSS positioning of the div. |
width |
string, number |
undefined |
Defines the width of the div. |
elevation |
number |
0 |
Applies Material-like shadow elevation to the div (0-5 levels supported). |
Example Usage
Basic Styled Div
Predefined Styled Components
Liberty Core provides a collection of predefined styled Div components to simplify UI development.
General Styled Divs
DivDiv_UsersDiv_UISettingsDiv_AppsLoginDiv_ColumnsFilterDiv_ExportDiv_LoadingDiv_LoginDiv_AutoCompleteDiv_AutoCompleteInputDiv_FormsToolsCardDiv_ContentWrapper
Dialog and Widget Components
Div_DialogToolbarDiv_DialogToolbarButtonsDiv_DialogToolbarButtonsEndDiv_DialogWidgetDiv_DialogWidgetTitleDiv_DialogWidgetTitleButtonsDiv_DialogWidgetContentDiv_DialogWidgetButtonsDiv_DialogTabPanel
Table and Grid Components
Div_TableToolbarDiv_TableToolbarButtonsDiv_TableProgressDiv_TableHeaderContentDiv_TableHeaderButtonsDiv_TableHeaderReiszeDiv_TableResultsOverlayDiv_TableFooterDiv_TableFooterContentDiv_TableCellDiv_TableGridDiv_TableGridContentDiv_TableTreeTitleDiv_TableListDiv_TableFiltersDiv_TableToolbarButtonsDiv_TableExpanderDiv_TableSearchDiv_TableColumnsChooserDiv_TableAllColumnsChooser
Chat and AI Components
Div_ChatContentDiv_ChatActionsDiv_ChatScrollButtonsDiv_FormsChatDiv_InputChatDiv_AIProgressDiv_AIError
Header and Navigation Components
Div_HeaderDiv_HeaderDrawerDiv_HeaderIconsDiv_HeaderToolbarDiv_HeaderAppBar
Drawer Components
Div_DrawerOverlayDiv_DrawerContainerDiv_DrawerContentDiv_DrawerHeaderDiv_DrawerPanelDiv_DrawerPanelDynamic
Specialized UI Components
Div_ExportGroupDiv_MarkdownDiv_InlineDiv_TableFabDiv_ResizeBoxDiv_ColorPickerDiv_ColorPickerPreviewDiv_InputColorDiv_ListItemDiv_ListItemTextDiv_FormsListViewDiv_StyledGridOverlayDiv_ChatTitleDiv_DialogWidgetTitleDiv_DialogWidgetButtonsDiv_TabPanelContentDiv_AppsLayoutDiv_AppsTabsHeaderDiv_AppsDialogTabPanel```
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core