react-icons/io#IoIosRefresh TypeScript Examples
The following examples show how to use
react-icons/io#IoIosRefresh.
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: Browser.tsx From mswjs.io with MIT License | 5 votes |
Browser: React.FC<BrowserProps & BoxProps> = ({
children,
address,
useLightTheme,
showControls,
showAddressBar,
...boxProps
}) => {
return (
<BrowserContainer {...boxProps}>
<Composition
as={BrowserHeader}
useLightTheme={useLightTheme}
templateCols="auto 1fr auto"
alignItems="center"
gap={24}
minHeight={24}
paddingHorizontal={16}
paddingVertical={8}
>
{showControls && (
<Composition inline templateCols="repeat(3, auto)" gap={6}>
<CloseControl />
<MinimizeControl />
<MaximizeControl />
</Composition>
)}
{showAddressBar && (
<Composition
as={AddressBar}
templateCols="auto 1fr auto"
gap={4}
alignItems="center"
justifyItems="center"
paddingHorizontal={6}
>
<IoIosMenu fill="currentColor" />
<span>{address}</span>
<IoIosRefresh fill="currentColor" />
</Composition>
)}
</Composition>
<BrowserContent>{children}</BrowserContent>
</BrowserContainer>
)
}