react-icons/ri#RiSettings4Fill JavaScript Examples
The following examples show how to use
react-icons/ri#RiSettings4Fill.
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: FloatingActionButton.js From anutimetable with Creative Commons Attribution Share Alike 4.0 International | 6 votes |
FloatingActionButton = ({ weekStart, setWeekStart, hiddenDays, setHiddenDays, darkMode, toggleDarkMode, hidden, setHiddenEvents, timeZone, setTimeZone }) => {
const [menuOpen, setMenuOpen] = useState(false)
return <div
className={'fab' + (menuOpen ? ' fab--open' : '')}
onMouseEnter={() => setMenuOpen(true)}
onMouseLeave={() => setMenuOpen(false)}
>
<Button
variant='secondary'
className='fab-button'
onClick={() => setMenuOpen(!menuOpen)}
>
{menuOpen ? <RiCloseLine size='2em' /> : <RiSettings4Fill size='2em' />}
</Button>
<div className='fab-actions'>
<WeekStartAction {...{ setMenuOpen, weekStart, setWeekStart, hiddenDays }} />
<HiddenDaysAction {...{ setMenuOpen, hiddenDays, setHiddenDays }} />
<TimeZoneAction {...{ setMenuOpen, timeZone, setTimeZone, darkMode }} />
<DarkModeAction {...{ darkMode, toggleDarkMode }} />
{hidden.length ? <HiddenOccurrencesAction {...{ setMenuOpen, hidden, setHiddenEvents }} /> : <></>}
</div>
</div>
}