This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f600/u1f600_u2615.png | |
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f603/u1f603_u2615.png | |
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f604/u1f604_u2615.png | |
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f601/u1f601_u2615.png | |
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f606/u1f606_u2615.png | |
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f605/u1f605_u2615.png | |
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f602/u1f602_u2615.png | |
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f923/u1f923_u2615.png | |
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f62d/u1f62d_u2615.png | |
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f617/u1f617_u2615.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tooltipRef = React.useRef(null); | |
const { isVisible, getTooltipProps, getTriggerProps } = useTooltip({ | |
tooltipRef | |
}); | |
// render | |
<div | |
{...getTooltipProps({ | |
ref: tooltipRef | |
})} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button {...getTriggerProps({ onMouseEnter: e => e.preventDefault() })}> | |
Trigger | |
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tabs extends React.Component { | |
render() { | |
return ( | |
<TabsContainer vertical={true}> | |
{({ | |
selectedItem, | |
focusedItem, | |
getTabProps, | |
getTabListProps, | |
getTabPanelProps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
selectedItem, | |
focusedItem, | |
getTabProps, | |
getTabListProps, | |
getTabPanelProps | |
} = useTabs({ rtl: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
selectedItem, | |
focusedItem, | |
getTabProps, | |
getTabListProps, | |
getTabPanelProps | |
} = useTabs({ vertical: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button {...getTabProps({ | |
item: 'tab 1', | |
index: 0, | |
focusRef: React.createRef(null) | |
})> | |
tab 1 | |
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div {...getTabPanelProps({ index: 0, item: 'tab 1' })} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
selectedItem, | |
focusedItem, | |
getTabProps, | |
getTabListProps, | |
getTabPanelProps | |
} = useTabs(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function TabContainer({ children, render = children, ...options }) { | |
return render(useTabs(...options); | |
} |
NewerOlder