Using Grommet for HPE?See RangeInput examples and guidance.
string
"a user friendly label for screen readers"
string
"control"
object
{ dark: "string", light: "string" }
array
[ { value: 3, color: '#FF0000', opacity: 0.5 }, { value: 7, color: { light: 'control', dark: 'brand' } }, { value: 10, color: '#00FF00' }, ]
Same as React <input disabled={} />. Also adds a hidden input element with the same name so form submissions work.
boolean
true
false
function
(event) => {}
At its core, the RangeInput component is a regular <input> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for input elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.
string
"focus"
object
{ dark: "string", light: "string" }
string
"brand"
object
{ dark: "string", light: "string" }
string
"focus"
object
{ dark: "string", light: "string" }
string
"brand"
object
{ dark: "rgba(255, 255, 255, 0.33)", light: "rgba(0, 0, 0, 0.33)" }
string
"brand"
object
{ dark: "string", light: "string" }
string
"brand"
object
{ dark: "string", light: "string" }
string
css`color: 'blue'`
function
(props) => {}
string
"none"
"xxsmall"
"xsmall"
"small"
"medium"
"large"
"xlarge"
"any CSS size"
object
{ vertical: "...", horizontal: "...", top: "...", bottom: "...", left: "...", right: "...", start: "...", end: "..." }
string
"brand"
object
{ dark: "string", light: "string" }
string
css`color: 'blue'`
function
(props) => {}
string
"border"
object
{ dark: "string", light: "string" }
string
"brand"
object
{ dark: "string", light: "string" }
string
"brand"
object
{ dark: "string", light: "string" }
string
css`color: 'blue'`
function
(props) => {}