Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 8583ec6

Browse files
Changed label propType from string to children
1 parent 6200d49 commit 8583ec6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dash_core_components/bundle.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_core_components/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2435,7 +2435,8 @@
24352435
},
24362436
"label": {
24372437
"type": {
2438-
"name": "string"
2438+
"name": "custom",
2439+
"raw": "PropTypes.children"
24392440
},
24402441
"required": false,
24412442
"description": "The tab's label"

src/components/Tab.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Tab.propTypes = {
1818
/**
1919
* The tab's label
2020
*/
21-
label: PropTypes.string,
21+
label: PropTypes.children,
2222

2323
/**
2424
* The content of the tab - will only be displayed if this tab is selected

src/components/Tabs.react.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ const EnhancedTab = ({
4444
}}
4545
>
4646
<span>{label}</span>
47-
<span>{value}</span>
4847
<style jsx>{`
4948
.tab {
5049
display: inline-block;

0 commit comments

Comments
 (0)