Comments (3)
Range Slider
The Range Slider allows the user to pick a value from a predefined range. It comes in 4 distinct forms:
-
Single Handle
The Single Handle is a slider that can be moved to any value in a range. -
Dual Handle
The Dual Handle allows the user to set a min and max value for a range. -
Single Stepped
The Single Stepped slider sets predetermined values that the user can set. When moving the handles, they will snap to each point. -
Dual Stepped
The Dual stepped works like the Dual Handle, except it can only be moved to predetermined values.
The Slider can accept an icon either side of it to give content to the value being changed.
States
The Range Slider Handles have two states - default and active. When being dragged, the Handle has a light blue border that expands out behind it. The current value of the slider is also displayed above the handle whilst active.
Abstract Link
Comments
- Can I have a use case for a vertical slider? I can't think of a use case where this would be appropriate. The only one that comes to mind is a vertical zoom slider, like the ones that appear on maps. However this would be a separate component specifically for maps as we a) don't know what the mapping software we're going to use supplies out of the box, and b) these components aren't suited for backgrounds that aren't a flat white colour. We'll have to rethink the design for maps.
from design-system.
-
In the original issue, we mention the types of labels it should have (descriptive and value(s)). Where would the descriptive label appear? Or can it be in a number of different positions (below || above || left || right of the component)? When it comes to the docs and sketch/abstract, that'd be useful to show. Assuming I've understood what you mean by 'descriptive' label.
-
Should we also acknowledge the min and max labels for the slider? You've used dark and light icons in your example? I assume they are things we're expecting the user (dev/designer) to specify. Do they always need to be icons or can they be text too?
Your Q about vertical: we should include vertical in the designs (i.e. not rule it out), even if we can't think of any specific examples. It'd be good to get some user feedback on vertical and horizontal - it might be that RN users prefer one due to how something else is presented to them (either in existing apps or commonly used hardware)?
from design-system.
This is now just awaiting design documentation.
from design-system.
Related Issues (20)
- Phase banner doesn't wrap well on small viewports
- Allow arbitrary content in Alert
- Enable an Inline Nav variant for Masthead
- Upgrade Storybook
- Supplementary colours supc and supd are the same HOT 1
- Add design tokens to Storybook HOT 1
- Make Masthead responsive
- Add focus trap to Modal
- Expose token values for use in storybook
- DataGrid: Click area of checkboxes is incorrect HOT 1
- Chromatic not reporting status in PRs
- Resolve node 16 GHA warnings
- Adjust component box-shadows inline with new Elevation guidelines HOT 1
- Remove shadow token '4'
- Update token description with more abstract definitions
- When clicking the icon the input should have focus on `TextInputE`
- Update DataGrid styling to latest
- Export selector functions directly in @royalnavy/design-tokens HOT 1
- Implement DataGrid Expandable Sub Rows and Column Groupings
- Masthead search box appears below Sidebar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from design-system.