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
ComponentsSliderThe Slider component allows users to select a value or range within a predefined range by sliding a handle along a track.
Guidelines
Design
v2.5.0
Updated
Vue
v2.0.0
Updated
Flutter
v2.0.0
Updated

Anatomy

The main track where the thumb moves.
The handle that can be dragged to select a value.
A progress indicator showing the selected value.
Displays the value while the thumb is being moved.
The field title is the label placed above the slider, describing what information the user needs to provide.
Slider area
The field title is the label placed above the field, commonly used examples are min and max.
The area where the user types their input.
Validation text appears below the input field, offering feedback to the user about the accuracy or completeness of their input.
Slider Variant
Default Slider
Default sliders allow users to select a single value within the slider track.
Range Slider
Range sliders allow users to define minimum and maximum values from a predefined range within the slider track.


Usage

Usage Recommendation:

  • Use when selecting a single value or range of number values.
  • Use sliders when there is a need to show a selection of a single value or range of values.
  • Use when needing to expose a variety of options or to limit the number of options quickly.


Accessibility

Screen Reader Support

The slider should have a label describing its function.


Content

Provide a clear and informative label.

When a user’s mouse cursor is hovering over the thumb of the slider component. Use a tooltip on hover to show the selected values.

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:

<BSlider />

Attributes

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

PropertiesData TypeDescriptionDefault Value
min?numberLowest input value0
max?numberHighest input value10
minRange?numberMinimum input range1
step?numberSize of each movement (an increment or jump between values)1
minimum?numberMinimum input value. This prop is two-way binding, use v-model:minimum0
maximum?numberMaximum input value. This prop is two-way binding, use v-model:maximum0
range?booleanEnable range modefalse
id?stringID for the inputnone
disabled?booleanDisable the input if truefalse
tooltip?booleanShow tooltip if truetrue
modelValuenumberSingle input value. This prop is two-way binding, use v-model for reactivity0
error?booleanMark the input as having an error if truefalse
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 UISlider.

UISlider

A Custom Slider is a versatile and customizable slider component that allows users to select a value or range of values by dragging a handle along a track. It is designed to be highly flexible and can be easily integrated into various mobile applications to enhance user experience.

PropertiesData TypeDescriptionDefault Value
mindoubleThe minimum value the user can select0
maxdoubleThe number of discreate divisions100
onChangedValueChanged<double>Called when the user is selecting a new value for the slider by draggingnull
UIRangeSlider

A Custom Range Slider is a versatile and customizable slider component that allows users to select a range of values by dragging two handles along a track. It is designed to be highly flexible and can be easily integrated into various mobile applications to enhance user experience.

PropertiesData TypeDescriptionDefault Value
mindoubleThe minimum value the user can select0
maxdoubleThe number of discreate divisions100
rangeValueRangeValues?Displays current value of rangenull
onChangedValueChanged<double>Called when the user is selecting a new value for the slider by draggingnull
onChangeEndValueChanged<RangeValues>?Callback function that is called when the user ends a change to the slider's range valuesnull
Slider Base
Range Slider
arrow_back
Previous Side Tab
Next Switch
arrow_forward