Buma UI - DocumentationBuma UI - Documentation
Get Started
Foundations
Components
Resources
Patterns
Data Visualization
Back to BSpace
Get Started
Foundations
Components
Resources
Patterns
Data Visualization
  • stacksFoundations
    • πŸ’‘ Overview
    • Color
    • Principle
    • Typography
  • brickComponents
    • πŸ’‘ Overview
    • Accordion
    • Alert
    • Avatar
    • Badge
    • Bottom Sheet
    • Bread Crumb
    • Button
    • Button Link
    • Button Navigation
    • Calendar
    • Card
    • Chat
    • Checkbox
    • Chips
    • Choice Tile
    • Comment
    • Date Picker
    • Divider
    • Download
    • Drawer
    • Dropdown
    • Empty State
    • Floating Button
    • Form Input
    • Header
    • Hint
    • Icon
    • List Choice
    • Loading
    • Modal
    • Navigation Bar
    • Notification
    • Pagination
    • Progress Bar
    • Radio Button
    • Search
    • Scrolling Bar
    • Segmented Switch
    • Side Menu
    • Side Tab
    • Slider
    • Switch
    • Tab
    • Table
    • Text Area
    • Text Input
    • Time Picker
    • Title
    • Toast
    • Tooltip
    • Wizzard
  • splitscreenPattern
    • πŸ’‘ Overview
    • Filter
      upcoming
    • Form
      upcoming
    • Notification
    • PWA
      upcoming
    • table
      upcoming
    • Upload Download
      upcoming
  • insert_chartData Visualization
    • πŸ’‘ Overview
    • Tiering
    • Pattern
    • Chart and Graph
      • Chart Selection Guide
      • Map Selector
      • Donut Chart
      • Donut Progress Bar Chart
      • Spider Chart
      • Line Chart
      • Chart Area
      • Speedometer
      • Heat Map
      • Scatter Plot
      • Pie Chart
      • Bar Chart
      • Waterfall Chart
      • Sunburst Chart
      • Tree Decomposition Chart
      • Scorecards
      • Table
      • Micro Visualization
    • Typography
    • Color Palette
  • data_objectTokens
    upcoming
  • inventory_2Resources
    • πŸ’‘ Overview
    • Mobile
      new
      • πŸ’‘ Introduction
      • Installation
      • General
        • Important Rules
        • Naming Convention
        • Clean Architecture
    • Web
      upcoming
ComponentsDividerA divider is a design element used to separate or divide parts of content. This helps organize the layout and improves visual clarity.
Guidelines
Design
v2.5.0
Updated
Vue
v2.0.0
Updated
Flutter
v2.0.0
Updated

Anatomy

Β Icon can be placed before or after the label.
Β Label to indicate the action.

Usage

  • Divider help in arranging the space between them. This helps create a more organized and visually appealing look.
  • Divider makes it possible to clarify the hierarchy of the user interface. For example, using dividends to separate titles and content in a section of the page.
  • Divider helps divide between user interface elements such as navigation menus, headers, main content, and footers. This helps make the UI layout more structured and easy to understand.
Variant on Style
Solid
Dash
Light
Light Dark
Example Use Case

Accessibility

A divider prevents the screen reader from proceeding to read material in a new segment. Users must swipe forward to pass through the divider and signify the beginning of a new part of content. Dividers should be used sparingly and only when white space is not sufficient to divide information. Divides the content into distinct groups.

Content

Divider does not have its own content guidelines, but it does play an informational and semantic function in determining how content should be organized and separated. Such as:

  • Divides the content into discrete groups.
  • A divider is informative and must be perceivable by all users.
  • Dividers should be used sparingly and only when the content cannot be separated by white space.
  • A screen reader experience must reflect the visual experience to notify the user that a new "section" has begun once a separator is visually presented.
Web
Resources You can use these components by accessing the provided resource files.

Usage

The package is already installed in the repository's shell. To use the component, you only need to add the following code:

<BDivider />

Attributes

If there is a question mark ? in the Data Type, it means that the properties are optional.

PropertiesData TypeDescriptionDefault Value
variantstringDetermines the button's solid or dash bordersolid
verticalbooleanvariant used for change chips colorfalse
tranparentbooleansmall used for change chips use small sizefalse
roundedbooleanMake badge width 100%false
weightstringfor disabled removemd

Variants

The <BDivider /> component supports the following variants:

VariantDescription
solidDivider using solid border
dashDivider using dash border

<BDivider variant="solid" />

Weight

The <BDivider /> component supports the following weight:

weightDescription
smDivider use borderwidth 2px
mdDivider use borderwidth 3px
lgDivider use borderwidth 4px

Mobile
Resources
  • You can use these components by accessing the provided resource files.
  • Preview animations are examples and may not suit Mobile Widgets. Press 'View Code' to access the Widgetbook Playground and see the Flutter widget displaying all created components and interactive.

Usage

Import this line to your file:

import 'package:buma_design_system/buma_design_system.dart';

Attributes of all variants

If there is a question mark ? in the Data Type, it means that the properties are optional, this is namedConstructor from UIDivider

UIDivider.horizontal

Create an horizontal divider, The size of the divider is defined by the width and thickness

PropertiesData TypeDescriptionDefault Value
widthdoubleThe width of the horizontal divider or the thickness of the vertical divider.double.infinity
thicknessdoubleThe thickness of the divider line1
colorColorThe color of the divierUIColors.strokeTertiary
transparentboolWhether the divider should be transparentfalse
styleUIDividerStyleThe style of the divider UIDividerStyle.rectangle or UIDividerStyle.roundedUIDividerStyle.rectangle
variantUIDividerVariant?A variant to make different dividerUIDIviderVariant.solid
dashLengthdoubleThe length of each dash in the divider2
dashGapdoubleThe gap between each dash in the divider2
UIDivider.vertical

Creates an vertical divider., The size of the divider is defined by the height and thickness

PropertiesData TypeDescriptionDefault Value
heightdoubleThe width of the vertical divider or the thickness of the horizontal divider.double.infinity
thicknessdoubleThe thickness of the divider line1
colorColorThe color of the divierUIColors.strokeTertiary
transparentboolWhether the divider should be transparentfalse
styleUIDividerStyleThe style of the divider UIDividerStyle.rectangle or UIDividerStyle.roundedUIDividerStyle.rectangle
variantUIDividerVariant?A variant to make different dividerUIDIviderVariant.solid
dashLengthdoubleThe length of each dash in the divider2
dashGapdoubleThe gap between each dash in the divider2

Previews & Code

You can call the components with Class.namedConstructor() with different variants

Divider Vertical
 UIDivider.vertical(
   height: 100,
   thickness: 1,
   color: UIColors.strokeSecondary,
   transparent: false,
   style: UIDividerStyle.rounded,
   variant: UIDividerVariant.solid,
 )
Divider Horizontal
 UIDivider.horizontal(
   width: 200,
   thickness: 2,
   color: UIColors.strokeTertiary,
   transparent: false,
   style: UIDividerStyle.rectangle,
   variant: UIDividerVariant.solid
 )
arrow_back
Previous Date Picker
Next Download
arrow_forward