@fortawesome/free-solid-svg-icons APIs
- faTimes
- faCheck
- faTrash
- faCog
- faInfoCircle
- faPlus
- faSearch
- faSpinner
- faArrowLeft
- faCopy
- faChevronDown
- faExclamationTriangle
- faUser
- faEdit
- faBars
- faHome
- faCheckCircle
- faExclamationCircle
- faQuestionCircle
- faPlay
- faTrashAlt
- faArrowRight
- faChevronRight
- faChevronUp
- fas
- faEye
- faSignOutAlt
- faLink
- faPen
- faSync
- faEyeSlash
- faStar
- faChevronLeft
- faLock
- faDownload
- faCaretDown
- faClock
- IconDefinition
- faEllipsisV
- faHeart
- faCode
- faAngleDown
- faTimesCircle
- faGlobe
- faFilter
- faSave
- faBell
- faList
- faSortDown
- faSortUp
- faUsers
- faArrowDown
- faArrowUp
- faPause
- faUndo
- faMoon
- faWindowMaximize
- faSyncAlt
- faExternalLinkAlt
- faAngleUp
- faAngleLeft
- faUpload
- faClipboard
- faBook
- faComments
- faSquare
- faCheckDouble
- faPlusCircle
- faComment
- faRandom
- faStop
- faFolderPlus
- faCamera
- faBan
- faEnvelope
- faGavel
- faPalette
- faPlane
- faTasks
- faPencilAlt
- faExchangeAlt
- faMapMarkerAlt
- faAngleRight
- faSun
- faMicrophone
- faMicrophoneSlash
- faVideo
- faVideoSlash
- faFile
- faLanguage
- faCogs
- faUserEdit
- faUserPlus
- faMinus
- faFolderOpen
- faCircleNotch
- faUserAlt
- faCodeBranch
- faCube
- faLaptopCode
- faMap
- faChartArea
- faHistory
- faShare
- faCloudDownloadAlt
- faFileUpload
- faCalendarAlt
- faLightbulb
- faPaperPlane
- faPaintBrush
- faExclamation
- faAnchor
- faBomb
- faMusic
- faCompress
- faExpand
- faRegistered
- faWifi
- faDrawPolygon
- faPhone
- faCommentDots
- faVolumeUp
- faCaretUp
- faBug
- faUserCircle
- faWallet
- faFileContract
- faTag
- faSearchPlus
- faSort
- faKey
- faVolumeMute
- faPowerOff
- faBolt
- faRedoAlt
- faSortAmountDown
- faCloudUploadAlt
- faShapes
- faSortAmountUp
- faTools
- faFileCode
- faRedo
- faAlignLeft
- faUserFriends
- faBookOpen
- faChartBar
- faFileExport
- faFileImport
- faSadCry
- faRocket
- faLinkSlash
- faTh
- faLongArrowAltRight
- faTags
- faDog
- faTv
- faCartPlus
- faMicrochip
- faNetworkWired
- faCommentSlash
- faAddressBook
- faCalendar
- faToggleOff
- faToggleOn
- faUserClock
- faHourglass
- faQuestion
- faStamp
- faAddressCard
- faPoo
- faAppleAlt
- faBible
- faBone
- faCar
- faCat
- faChess
- faSkull
- faFeatherAlt
- faFire
- faWindowMinimize
- faReplyAll
- faSignInAlt
- faBold
- faItalic
- faUnderline
- faHeading
- faQuoteRight
- faListOl
- faListUl
- faLevelDownAlt
- faLevelUpAlt
- faUndoAlt
- faPlug
- faBullhorn
- faPlaneDeparture
- faSimCard
- faBrush
- faAngleDoubleDown
- faCoins
- faCompressArrowsAlt
- faDiceD6
- faNewspaper
- faMinimize
- faUpRightFromSquare
- faCubes
- faRetweet
- faHandPeace
- faSpaceShuttle
- faXmark
- faFileAudio
- faStopwatch
- faDragon
- faSortNumericDown
- faSortNumericDownAlt
- faArrowUpRightFromSquare
- faArrowDown19
- faArrowDown91
- faHashtag
- faRepeat
- faLaptop
- faCloud
- faPiggyBank
- faRunning
- faBiking
- faBicycle
- faShareAlt
- faRuler
- faVial
- faUserTimes
- faUserMinus
- faCalendarDay
- faStepBackward
- faStepForward
- faDotCircle
- faUserLock
- faUserCog
- faTrophy
- faShareSquare
- faHandPointRight
- faChartLine
- faUserShield
- faCheckSquare
- faSortAmountDownAlt
- faIdCard
- faUserSlash
- faCalculator
- faEllipsisH
- faRulerCombined
- faSoap
- faMousePointer
- faHandRock
- faDroplet
- faThumbtack
- faReply
- faLayerGroup
- faMask
- faWindowRestore
- faThLarge
- faDesktop
- faInfo
- faHandsHelping
- faKeyboard
- faChartPie
- faColumns
- faTable
- faTachometerAlt
- faClipboardList
- faHammer
- faLockOpen
- faCity
- faChessRook
- faMountain
- faCampground
- faUniversity
- faCrosshairs
- faWrench
- faArrowCircleLeft
- faIdCardAlt
- faCreditCard
- faDollarSign
- faIdBadge
- faSlidersH
- faEuroSign
- faPoundSign
- faSearchDollar
- faPlayCircle
- faStream
- faFilm
- faSmile
- faPhoneAlt
- faArrowsAltV
- faUserAltSlash
- faLongArrowAltLeft
- faHdd
- faUnlink
- faInbox
- faMagic
- faImage
- faCalendarCheck
- faUserCheck
- faFolder
- faThermometerEmpty
- faCut
- faPaste
- faCircle
- faMobile
- faClipboardCheck
- faSortAlphaUp
- faSortAlphaDown
- faRss
- faPaw
Other Related APIs
- react#useCallback
- react#useContext
- react#useMemo
- rxjs#from
- lodash#isString
- @fortawesome/free-solid-svg-icons#faChevronRight
- @fortawesome/free-solid-svg-icons#faLink
- @mui/material#Box
- @mui/material#Button
- @mui/material#IconButton
- @mui/material#Tooltip
- @mui/material#TextField
- @mui/material#Typography
- @mui/material#MenuItem
- @mui/material#Alert
- @mui/material#Chip
- @mui/material#Stack
- @mui/material#AlertTitle
- @mui/lab#LoadingButton
@fortawesome/free-solid-svg-icons#faLinkSlash TypeScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faLinkSlash.
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: connected-status.tsx From example with MIT License | 6 votes |
export function ConnectedStatus({ state }: IConnectedStatusProps) {
const {environment} = useContext(EnvironmentContext)
return (
<Stack direction="row" alignItems="center" spacing={2}>
<Tooltip title="SDK Connection Environment" placement="bottom">
<Chip
size="small"
color="info"
label={getEnvironmentName(environment)}
sx={{
lineHeight: 1.1,
height: "20px",
fontSize: "0.8125rem"
}}
/>
</Tooltip>
<Box sx={{ display: "inline" }}>
<Typography variant="subtitle1" >Connected </Typography>
<Typography variant="subtitle2">
<Address address={state.connection.address}/>
</Typography>
</Box>
<IconButton
color="inherit"
title="Disconnect"
onClick={state.disconnect}
>
<Icon icon={faLinkSlash}/>
</IconButton>
</Stack>
)
}
Example #2
Source File: connection-status.tsx From example with MIT License | 6 votes |
export function ConnectionStatus() {
const connection = useContext(ConnectorContext)
switch (connection?.state.status) {
case "connected":
return <Alert severity="success" icon={<Icon icon={faLink}/>}>
<AlertTitle>Current Status: connected</AlertTitle>
Application is connected to wallet <Address
address={connection.state.connection.address}
trim={false}
/>
</Alert>
case "disconnected":
const error = connectionErrorMessage(connection?.state.error)
return <Alert severity="error" icon={<Icon icon={faLinkSlash}/>}>
<AlertTitle>Disconnected</AlertTitle>
Application currently not connected to any wallet
{ error && <Box sx={{ mt: 1 }}>Last attempt error: {error}</Box> }
</Alert>
case "connecting":
return <Alert severity="info">
<AlertTitle>Connecting...</AlertTitle>
Connection to wallet in process
</Alert>
case "initializing":
return <Alert severity="info">
<AlertTitle>Initializing...</AlertTitle>
Connector initialization
</Alert>
default:
return null
}
}
Example #3
Source File: connected-status.tsx From sdk with MIT License | 6 votes |
export function ConnectedStatus({ state }: IConnectedStatusProps) {
const {environment} = useContext(EnvironmentContext)
return (
<Stack direction="row" alignItems="center" spacing={2}>
<Tooltip title="SDK Connection Environment" placement="bottom">
<Chip
size="small"
color="info"
label={getEnvironmentName(environment)}
sx={{
lineHeight: 1.1,
height: "20px",
fontSize: "0.8125rem"
}}
/>
</Tooltip>
<Box sx={{ display: "inline" }}>
<Typography variant="subtitle1" >Connected </Typography>
<Typography variant="subtitle2">
<Address address={state.connection.address}/>
</Typography>
</Box>
<IconButton
color="inherit"
title="Disconnect"
onClick={state.disconnect}
>
<Icon icon={faLinkSlash}/>
</IconButton>
</Stack>
)
}
Example #4
Source File: connect-options.tsx From example with MIT License | 2 votes |
export function ConnectOptions() {
const { environment, setEnvironment } = useContext(EnvironmentContext)
const connection = useContext(ConnectorContext)
const { connector, state } = connection
const options$ = useMemo(() => connector ? from(connector.getOptions()) : from([]), [connector])
const envSelectHandler = useCallback((e: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => {
setEnvironment?.(e.target.value as RaribleSdkEnvironment)
}, [setEnvironment])
if (!connector) {
return null
}
const style = {
justifyContent: "start",
pl: "3rem",
"& .MuiButton-startIcon": {
position: "absolute",
left: "1.25rem"
}
}
return <Box sx={{
maxWidth: 300
}}>
<Rx value$={options$}>
{options => (
<Stack spacing={1}>
<TextField
select
size="small"
label="Environment"
disabled={state?.status === "connected"}
value={environment}
onChange={envSelectHandler}
>
{ENVIRONMENTS.map((option) => (
<MenuItem key={option.value} value={option.value}>
{option.label}
</MenuItem>
))}
</TextField>
{
options.map(o => {
const walletInfo = getWalletInfo(o.option)
return <LoadingButton
key={o.option}
onClick={() => connector.connect(o)}
loading={state.status === "connecting" && state.providerId === o.provider.getId()}
loadingPosition="start"
startIcon={<Icon icon={faChevronRight}/>}
sx={style}
variant="outlined"
disabled={state?.status === "connected"}
fullWidth
>
{walletInfo.label}
</LoadingButton>
})
}
<Button
onClick={(state as StateConnected<any>).disconnect}
startIcon={<Icon icon={faLinkSlash}/>}
color="error"
sx={style}
variant="outlined"
disabled={state?.status !== "connected"}
fullWidth
>
Disconnect
</Button>
</Stack>
)}
</Rx>
</Box>
}