react-feather APIs
- X
- CheckCircle
- Check
- ChevronDown
- Activity
- ChevronLeft
- ChevronRight
- ArrowRight
- GitHub
- Menu
- XCircle
- Sun
- Moon
- MapPin
- Plus
- Play
- AlertTriangle
- HelpCircle
- ChevronsRight
- MoreVertical
- Search
- ExternalLink
- Home
- Copy
- ChevronUp
- Bookmark
- List
- AlertCircle
- ChevronsLeft
- Heart
- Terminal
- Eye
- Info
- FastForward
- Trash
- Book
- TrendingUp
- PieChart
- Disc
- PlusCircle
- ArrowUpCircle
- Filter
- EyeOff
- LogOut
- Key
- Save
- Trash2
- Maximize2
- Pause
- Users
- ChevronsDown
- Database
- Send
- FileText
- Layers
- Edit
- Inbox
- Smartphone
- Clipboard
- Codepen
- Youtube
- Chrome
- UserPlus
- UploadCloud
- Star
- GitMerge
- Minimize
- Folder
- GitPullRequest
- MessageCircle
- LogIn
- Edit3
- Tag
- Maximize
- ArrowDownRight
- Lock
- Minimize2
- Rewind
- SkipBack
- SkipForward
- Unlock
- MoreHorizontal
- Volume1
- Volume2
- VolumeX
- Repeat
- ArrowUpRight
- Bell
- BookOpen
- ChevronsUp
- ArrowLeft
- Calendar
- XOctagon
- Compass
- BarChart2
- Map
- Gift
- Crop
- CloudLightning
- Move
- ArrowUp
- ArrowDown
- Navigation
- Watch
- Edit2
- Phone
- Package
- User
- Rss
- Code
- Paperclip
- Box
- Feather
- Globe
- Grid
- PhoneCall
- Share2
- Monitor
- Clock
OtherRelated APIs
- react#useState
- react#useRef
- react#useLayoutEffect
- react#forwardRef
- gatsby#Link
- gatsby#useStaticQuery
- gatsby#graphql
- @mdx-js/react#MDXProvider
- react-feather#Check
- react-feather#ChevronRight
- react-feather#Heart
- react-feather#Crop
- react-feather#Layers
- react-feather#CloudLightning
- react-feather#Move
- react-feather#ArrowUp
- @emotion/react#css
react-feather#ArrowDown JavaScript Examples
The following examples show how to use
react-feather#ArrowDown.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Landing.js From popper.js.org with MIT License | 5 votes |
FlipExample = () => {
const { reference, popper } = usePopper({ placement: 'bottom' });
const scrollContainerRef = useRef();
useLayoutEffect(() => {
scrollContainerRef.current.scrollTop =
window.innerWidth <= sizes.lg ? 490 : 450;
}, []);
const code = `
import { createPopper } from '@popperjs/core';
const popcorn = document.querySelector('#popcorn');
const tooltip = document.querySelector('#tooltip');
createPopper(popcorn, tooltip);
`;
return (
<ExampleBox>
<ScrollContainer ref={scrollContainerRef}>
<PopcornBox ref={reference} src={popcornBox} />
<Tooltip ref={popper}>
<TooltipName>Popcorn</TooltipName>
<TooltipPrice>New Item</TooltipPrice>
<Arrow data-popper-arrow />
</Tooltip>
</ScrollContainer>
<ExampleText>
<Heading>
<ArrowUp />
<ArrowDown /> Flipping
</Heading>
<p>
<strong>Scroll the container</strong> (or the whole page) to see the
tooltip flip to the opposite side once it's about to overflow the
visible area. Once enough space is detected on its preferred side, it
will flip back.
</p>
<Highlight code={code} />{' '}
<span>
<ExternalLinkStyled to="https://codesandbox.io/s/github/popperjs/website/tree/master/examples/flipping">
Edit on CodeSandbox
</ExternalLinkStyled>
</span>
</ExampleText>
</ExampleBox>
);
}