Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
248 lines
8.2 KiB
JSON
248 lines
8.2 KiB
JSON
{
|
|
"props": {
|
|
"aria-label": { "type": { "name": "string" } },
|
|
"aria-valuetext": { "type": { "name": "string" } },
|
|
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
|
|
"color": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'danger'<br>| 'neutral'<br>| 'primary'<br>| 'success'<br>| 'warning'<br>| string"
|
|
},
|
|
"default": "'primary'",
|
|
"additionalInfo": { "joy-color": true }
|
|
},
|
|
"component": { "type": { "name": "elementType" } },
|
|
"defaultValue": {
|
|
"type": { "name": "union", "description": "Array<number><br>| number" }
|
|
},
|
|
"disabled": { "type": { "name": "bool" }, "default": "false" },
|
|
"disableSwap": { "type": { "name": "bool" }, "default": "false" },
|
|
"getAriaLabel": {
|
|
"type": { "name": "func" },
|
|
"signature": { "type": "function(index: number) => string", "describedArgs": ["index"] }
|
|
},
|
|
"getAriaValueText": {
|
|
"type": { "name": "func" },
|
|
"signature": {
|
|
"type": "function(value: number, index: number) => string",
|
|
"describedArgs": ["value", "index"]
|
|
}
|
|
},
|
|
"isRtl": { "type": { "name": "bool" }, "default": "false" },
|
|
"marks": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "Array<{ label?: node, value: number }><br>| bool"
|
|
},
|
|
"default": "false"
|
|
},
|
|
"max": { "type": { "name": "number" }, "default": "100" },
|
|
"min": { "type": { "name": "number" }, "default": "0" },
|
|
"name": { "type": { "name": "string" } },
|
|
"onChange": {
|
|
"type": { "name": "func" },
|
|
"signature": {
|
|
"type": "function(event: Event, value: number | Array<number>, activeThumb: number) => void",
|
|
"describedArgs": ["event", "value", "activeThumb"]
|
|
}
|
|
},
|
|
"onChangeCommitted": {
|
|
"type": { "name": "func" },
|
|
"signature": {
|
|
"type": "function(event: React.SyntheticEvent | Event, value: number | Array<number>) => void",
|
|
"describedArgs": ["event", "value"]
|
|
}
|
|
},
|
|
"orientation": {
|
|
"type": { "name": "enum", "description": "'horizontal'<br>| 'vertical'" },
|
|
"default": "'horizontal'"
|
|
},
|
|
"scale": {
|
|
"type": { "name": "func" },
|
|
"default": "function Identity(x) {\n return x;\n}",
|
|
"signature": { "type": "function(x: any) => any", "describedArgs": [] }
|
|
},
|
|
"shiftStep": { "type": { "name": "number" }, "default": "10" },
|
|
"size": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'sm'<br>| 'md'<br>| 'lg'<br>| string"
|
|
},
|
|
"default": "'md'",
|
|
"additionalInfo": { "joy-size": true }
|
|
},
|
|
"slotProps": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ input?: func<br>| object, mark?: func<br>| object, markLabel?: func<br>| object, rail?: func<br>| object, root?: func<br>| object, thumb?: func<br>| object, track?: func<br>| object, valueLabel?: func<br>| object }"
|
|
},
|
|
"default": "{}"
|
|
},
|
|
"slots": {
|
|
"type": {
|
|
"name": "shape",
|
|
"description": "{ input?: elementType, mark?: elementType, markLabel?: elementType, rail?: elementType, root?: elementType, thumb?: elementType, track?: elementType, valueLabel?: elementType }"
|
|
},
|
|
"default": "{}",
|
|
"additionalInfo": { "slotsApi": true }
|
|
},
|
|
"step": { "type": { "name": "number" }, "default": "1" },
|
|
"sx": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "Array<func<br>| object<br>| bool><br>| func<br>| object"
|
|
},
|
|
"additionalInfo": { "sx": true }
|
|
},
|
|
"tabIndex": { "type": { "name": "number" } },
|
|
"track": {
|
|
"type": {
|
|
"name": "enum",
|
|
"description": "'inverted'<br>| 'normal'<br>| false"
|
|
},
|
|
"default": "'normal'"
|
|
},
|
|
"value": {
|
|
"type": { "name": "union", "description": "Array<number><br>| number" }
|
|
},
|
|
"valueLabelDisplay": {
|
|
"type": { "name": "enum", "description": "'auto'<br>| 'off'<br>| 'on'" },
|
|
"default": "'off'"
|
|
},
|
|
"valueLabelFormat": {
|
|
"type": { "name": "union", "description": "func<br>| string" },
|
|
"default": "function Identity(x) {\n return x;\n}"
|
|
},
|
|
"variant": {
|
|
"type": {
|
|
"name": "union",
|
|
"description": "'outlined'<br>| 'plain'<br>| 'soft'<br>| 'solid'<br>| string"
|
|
},
|
|
"default": "'solid'",
|
|
"additionalInfo": { "joy-variant": true }
|
|
}
|
|
},
|
|
"name": "Slider",
|
|
"imports": ["import Slider from '@mui/joy/Slider';", "import { Slider } from '@mui/joy';"],
|
|
"slots": [
|
|
{
|
|
"name": "root",
|
|
"description": "The component that renders the root.",
|
|
"default": "'span'",
|
|
"class": "MuiSlider-root"
|
|
},
|
|
{
|
|
"name": "track",
|
|
"description": "The component that renders the track.",
|
|
"default": "'span'",
|
|
"class": "MuiSlider-track"
|
|
},
|
|
{
|
|
"name": "rail",
|
|
"description": "The component that renders the rail.",
|
|
"default": "'span'",
|
|
"class": "MuiSlider-rail"
|
|
},
|
|
{
|
|
"name": "thumb",
|
|
"description": "The component that renders the thumb.",
|
|
"default": "'span'",
|
|
"class": "MuiSlider-thumb"
|
|
},
|
|
{
|
|
"name": "mark",
|
|
"description": "The component that renders the mark.",
|
|
"default": "'span'",
|
|
"class": "MuiSlider-mark"
|
|
},
|
|
{
|
|
"name": "markLabel",
|
|
"description": "The component that renders the mark label.",
|
|
"default": "'span'",
|
|
"class": "MuiSlider-markLabel"
|
|
},
|
|
{
|
|
"name": "valueLabel",
|
|
"description": "The component that renders the value label.",
|
|
"default": "'span'",
|
|
"class": null
|
|
},
|
|
{
|
|
"name": "input",
|
|
"description": "The component that renders the input.",
|
|
"default": "'input'",
|
|
"class": null
|
|
}
|
|
],
|
|
"classes": [
|
|
{
|
|
"key": "active",
|
|
"className": "Mui-active",
|
|
"description": "State class applied to the thumb element if it's active.",
|
|
"isGlobal": true
|
|
},
|
|
{
|
|
"key": "disabled",
|
|
"className": "Mui-disabled",
|
|
"description": "State class applied to the root and thumb element if `disabled={true}`.",
|
|
"isGlobal": true
|
|
},
|
|
{
|
|
"key": "dragging",
|
|
"className": "MuiSlider-dragging",
|
|
"description": "State class applied to the root if a thumb is being dragged.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "focusVisible",
|
|
"className": "Mui-focusVisible",
|
|
"description": "State class applied to the thumb element if keyboard focused.",
|
|
"isGlobal": true
|
|
},
|
|
{
|
|
"key": "markActive",
|
|
"className": "MuiSlider-markActive",
|
|
"description": "Class name applied to the mark element if active (depending on the value).",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "marked",
|
|
"className": "MuiSlider-marked",
|
|
"description": "Class name applied to the root element if `marks` is provided with at least one label.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "markLabelActive",
|
|
"className": "MuiSlider-markLabelActive",
|
|
"description": "Class name applied to the mark label element if active (depending on the value).",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "trackFalse",
|
|
"className": "MuiSlider-trackFalse",
|
|
"description": "Class name applied to the root element if `track={false}`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "trackInverted",
|
|
"className": "MuiSlider-trackInverted",
|
|
"description": "Class name applied to the root element if `track=\"inverted\"`.",
|
|
"isGlobal": false
|
|
},
|
|
{
|
|
"key": "vertical",
|
|
"className": "MuiSlider-vertical",
|
|
"description": "Class name applied to the root element if `orientation=\"vertical\"`.",
|
|
"isGlobal": false
|
|
}
|
|
],
|
|
"spread": false,
|
|
"themeDefaultProps": true,
|
|
"muiName": "JoySlider",
|
|
"forwardsRefTo": "HTMLSpanElement",
|
|
"filename": "/packages/mui-joy/src/Slider/Slider.tsx",
|
|
"inheritance": null,
|
|
"demos": "<ul><li><a href=\"/joy-ui/react-slider/\">Slider</a></li></ul>",
|
|
"cssComponent": false
|
|
}
|