Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Dec 12, 2024
1 parent 5b94f19 commit 938d581
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/reference/generated/select-value.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"description": "A text label of the currently selected item.\nRenders a `<span>` element.",
"props": {
"children": {
"type": "React.ReactElement | (value) => React.ReactElement",
"description": "Allows you to customize the rendering of the text.\n\nAccepts a `ReactElement` or a function that returns the element to render."
"type": "React.ReactNode | (value) => React.ReactNode",
"description": "Override children if you need to customize how the value is displayed.\nBy default, renders the current value as is.\n\nAccepts a `ReactNode` or a function that returns the node to render."
},
"className": {
"type": "string | (state) => string",
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/generated/slider-value.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "SliderValue",
"description": "Displays the current value of the slider as text.\nRenders an `<output>` element.",
"props": {
"children": {
"type": "React.ReactNode | (formattedValue, value) => React.ReactNode",
"description": "Override children if you need to customize how the value is displayed.\nBy default, renders the current value as is.\n\nAccepts a `ReactNode` or a function that returns the node to render."
},
"className": {
"type": "string | (state) => string",
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/overrides/select-value.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "SelectValue",
"props": {
"children": {
"type": "React.ReactElement | (value) => React.ReactElement",
"description": "Allows you to customize the rendering of the text.\n\nAccepts a `ReactElement` or a function that returns the element to render."
"type": "React.ReactNode | (value) => React.ReactNode",
"description": "Override children if you need to customize how the value is displayed.\nBy default, renders the current value as is.\n\nAccepts a `ReactNode` or a function that returns the node to render."
}
}
}
9 changes: 9 additions & 0 deletions docs/reference/overrides/slider-value.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "SliderValue",
"props": {
"children": {
"type": "React.ReactNode | (formattedValue, value) => React.ReactNode",
"description": "Override children if you need to customize how the value is displayed.\nBy default, renders the current value as is.\n\nAccepts a `ReactNode` or a function that returns the node to render."
}
}
}

0 comments on commit 938d581

Please sign in to comment.