@fortawesome/free-solid-svg-icons APIs
- faTimes
- faSearch
- faPlus
- faBars
- faCheck
- faEnvelope
- fas
- faTrash
- faArrowLeft
- faEdit
- faChevronDown
- faCheckCircle
- faHeart
- faExternalLinkAlt
- faHome
- faSpinner
- faArrowRight
- faEye
- faSignOutAlt
- faUsers
- faTrashAlt
- faTimesCircle
- faMapMarkerAlt
- faUser
- faChevronRight
- faAngleRight
- faCopy
- faExclamationTriangle
- faDownload
- faCog
- faAngleDown
- faUpload
- faLink
- faShoppingCart
- faCogs
- faInfoCircle
- faQuestionCircle
- faMoon
- faStar
- faGlobe
- faUserPlus
- faAngleUp
- faArrowDown
- faPhone
- faPlay
- faPencilAlt
- faCode
- faCalendar
- faSyncAlt
- faArrowUp
- faAngleLeft
- faEllipsisV
- faEyeSlash
- faChevronLeft
- faFile
- faChevronUp
- faClock
- faSun
- faCalendarAlt
- faSync
- faPaperPlane
- faQuestion
- faDollarSign
- faSignInAlt
- faList
- faFilter
- faComment
- faLock
- faUserCircle
- faShoppingBag
- faBell
- faFileAlt
- faBullhorn
- faMinus
- faPaperclip
- faCaretDown
- faHandHoldingUsd
- faHandshake
- faThumbsUp
- faChartPie
- faCodeBranch
- faTh
- faFolder
- faLaptop
- faTag
- faBook
- faCircleNotch
- faWrench
- faHistory
- faBan
- faExclamationCircle
- faPen
- faPause
- faMinusCircle
- faAlignLeft
- faAngleDoubleLeft
- faAngleDoubleRight
- faCalendarDay
- faLaptopCode
- faFire
- faPalette
- faMailBulk
- faRedoAlt
- faSave
- faEraser
- faBriefcase
- faFolderOpen
- faCompass
- faLightbulb
- faBox
- faVideo
- faLocationArrow
- faChartBar
- faExchangeAlt
- faTable
- faTachometerAlt
- faImages
- faShare
- faShareAlt
- faPlusSquare
- faShareSquare
- faVolumeMute
- faVolumeUp
- faFolderPlus
- faImage
- faCalculator
- faDatabase
- faRandom
- faMapPin
- faMapMarker
- faTabletAlt
- faUserFriends
- faAward
- faCalendarCheck
- faCoffee
- faGreaterThan
- faArrowCircleRight
- faFlask
- faStarHalfAlt
- faCompressAlt
- faExpandAlt
- faSortUp
- faSortDown
- faEllipsisH
- faMobileAlt
- faCross
- faShoppingBasket
- faCommentDots
- faBuilding
- faSearchDollar
- faMoneyCheck
- faExclamation
- faCloudDownloadAlt
- faChartLine
- faBookmark
- faMap
- faInbox
- faUnlink
- faUndo
- faPlusCircle
- faPlug
- faTools
- faClipboard
- faThLarge
- faComments
- faRedo
- faAddressBook
- faArrowsAlt
- faMicrochip
- faCubes
- faIdBadge
- faChartArea
- faBolt
- faMedal
- faTrophy
- faUserEdit
- faChalkboardTeacher
- faGraduationCap
- faUserGraduate
- faPercent
- faHandPointer
- faUndoAlt
- faFillDrip
- faFileUpload
- faVirus
- faGlobeAmericas
- faCalendarWeek
- faCalendarTimes
- faPhoneAlt
- faFilePdf
- faClipboardList
- faEnvelopeSquare
- faLessThan
- faGripLinesVertical
- faStepBackward
- faStepForward
- faCamera
- faBellSlash
- faArrowCircleDown
- faHeadSideCough
- faIndustry
- faLongArrowAltRight
- faDrawPolygon
- faMicrophone
- faMicrophoneSlash
- faWindowMinimize
- faWindowMaximize
- faCircle
- faVideoSlash
- faFileDownload
- faCheckSquare
- faServer
- faEquals
- faCreditCard
- faCartPlus
- faSearchPlus
- faPlaneDeparture
- faLanguage
- faInfo
- faRss
- faSnowflake
- faFan
- faThumbsDown
- faStop
- faGamepad
- faArrowAltCircleLeft
- faArrowAltCircleRight
- faAtom
- faCaretSquareLeft
- faCaretSquareRight
- faUserSlash
- faMoneyBill
- faCloudMoon
- faCar
- faHandPaper
- faMoneyBillWaveAlt
- faBorderAll
- faHotel
- faHatCowboySide
- faDog
- faCat
- faShip
- faFrog
- faTrain
- faFaucet
- faArrowAltCircleUp
- faStream
- faArrowsAltV
- faExternalLinkSquareAlt
- faLockOpen
- faClipboardCheck
- faFileSignature
- faMagnet
- faPencilRuler
- faRulerCombined
- faMusic
- faCommentAlt
- faFilm
- faCut
- faChevronCircleDown
- faRssSquare
- faTree
- faPrint
- faStamp
- faEllipsis
- faRefresh
- faForward
- faAdjust
- faScroll
- faRobot
- faCaretRight
- faFileImport
- faSatelliteDish
- faSlidersH
- faHourglassHalf
- faAsterisk
- faBlog
- faSignal
- faRoad
- faSuperscript
- faTags
- faFlagUsa
- faGlobeEurope
- faDesktop
- faArrowCircleLeft
- faPoll
- faFileInvoice
- faMagic
- faAt
- faNetworkWired
- faBookReader
- faDonate
- faInfinity
- faUserNinja
OtherRelated APIs
@fortawesome/free-solid-svg-icons#faSearchPlus JavaScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faSearchPlus.
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: Product.js From clayma-store with MIT License | 4 votes |
export default function Product(props) {
const { addToast } = useToasts();
const {addItemTocart}= useContext(GlobalCartContext)
function handleAddToCart(data) {
const newCartItem={
productname: data.productname,
cartItemId: uuidv4(),
id: data.id,
price: data.price,
discount: data.discount,
color: data.color,
size: data.size,
selectedSize:data.size[0],
product_status: data.product_status,
product_stock: data.product_stock,
product_selected_qty:1,
product_image: data.product_image,
brand: data.brand,
product_details: data.product_details
}
addItemTocart(newCartItem);
addToast(data.productname+" successfully added to your cart", { appearance: 'success', autoDismiss: true, })
}
const productLevel = props.data.product_stock;
let bannerStockLevel = "";
let stockLevelMessage = "";
let product_name = props.data.productname.replace(/ /g, "_");
if (productLevel > 0 && productLevel < 100) {
bannerStockLevel = "product-banner-stock-level-low";
stockLevelMessage = `Low stock, only ${productLevel} left.`;
} else if (productLevel === 0) {
bannerStockLevel = "product-banner-stock-level-out-of-stock";
stockLevelMessage = `Out of stock`;
}
return (
<div className="col-lg-3 col-md-4 col-sm-6 col-product-container">
<div className="card-product">
<img
className="card-img-top"
src={require("../assets/products/allproducts/" +
props.data.product_image)}
alt={props.data.product_image}
/>
<div
className={`${
props.data.product_status === "New"
? "product-banner-new"
: "product-banner-trending"
}`}
>
{props.data.product_status}
</div>
<div className={bannerStockLevel}>{stockLevelMessage}</div>
<div className="card-body">
<h2 className="card-title">
{props.data.productname}</h2>
<div className="row">
<div className="col-lg-7 col-md-6 col-sm-6">
{props.data.discount > 0 ? (
<h3>
{" "}
<span className="product-price-after-discount">
{
new Intl.NumberFormat('en-US', {style: 'currency', currency:'ZAR'}).format( props.data.price - (props.data.price * props.data.discount / 100)
)
}
</span>{" "}
<span className="product-price-before-discount">
{" "}
{
new Intl.NumberFormat('en-US', {style: 'currency', currency:'ZAR'}).format( props.data.price)
}
</span>{" "}
<span className="product-discount-rate">
-{props.data.discount}%{" "}
</span>
</h3>
) : (
<h3>
{" "}
<span className="product-price-whit-no-discount">
{
new Intl.NumberFormat('en-US', {style: 'currency', currency:'ZAR'}).format( props.data.price)
}
</span>
</h3>
)}
</div>
<div className="col-lg-5 col-md-6 col-sm-6 ">
<div className="card-product-action-icons">
{props.data.product_stock >=1 ?
<span
name="id"
value={props.data.id}
className="card-product-action-cart-icon add-to-cart-icon"
onClick={ () => handleAddToCart(props.data)}
>
<FontAwesomeIcon
icon={faCartPlus}
/>
</span>
:""}
<span>
<a
href={`/catalog/item/${props.data.id}/${product_name}/view`}
className="card-product-action-cart-icon"
>
<FontAwesomeIcon icon={faSearchPlus} />
</a>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
);
}