Icon
View Source
Icons are used to help visually communicate actions and information to the end user.
An “icon set” groups product-specific icon paths together. By default, tapestry-react
components have access to the general
icon set, which contains icon paths that multiple products share.
- Prefix the icon set’s name
- Use dot notation to specify your icon
- Render the icon name in camelCase
// expects: iconSetName.iconName<Icon name="general.outlinedInfoCircle" /><Button icon={{ name: "general.outlinedInfoCircle"}} />
Additional icon sets can be imported from libraries like @planningcenter/icons
and exported through your app’s ThemeProvider. (You can import all exports by using an asterisk.)
{/* import icon sets in local theme definition */}import * as calendar from '@planningcenter/icons/paths/calendar'import * as giving from '@planningcenter/icons/paths/giving'import * as people from '@planningcenter/icons/paths/people'const theme = {...themeOptions,icons: {calendar,giving,people,...designSystem.defaultTheme.icons},}{/* prefix Icon instance in component */}<Icon name="calendar.reservationBlock" /><Icon name="giving.clockCircleO" /><Icon name="people.photoOutline" />
Preview all of the available icon sets and their icon’s names from @planningcenter/icons
.
bell
bellMuted
bill
blankFile
blockGrid
bolt
bracketsCurly
brokenLink
calendar
calendarRepeat
celebrate
check
checkCalendar
checkCircle
checkDouble
checklist
checkPerson
clock
closedStar
cog
cogPerson
creditCard
downArrow
downCaret
downChevron
dragHandle
envelope
event
exchange
exclamationCircle
exclamationTriangle
faders
folder
fromCloudArrow
funnel
genericFile
hangTag
heart
hideEye
image
inactive
infoCircle
intoBox
inTray
laptop
leftArrow
leftCaret
leftChevron
link
locationPin
lock
magicWand
megaphone
message
minus
minusCircle
mobilePhone
newWindow
openFolder
openStar
outlinedBell
outlinedBlankFile
outlinedCelebrate
outlinedChecklist
outlinedCircleCheck
outlinedClock
outlinedCreditCard
outlinedDots
outlinedEnvelope
outlinedExclamationCircle
outlinedGenericFile
outlinedHeart
outlinedImageFile
outlinedInfoCircle
outlinedLocationPin
outlinedMessage
outlinedMinusCircle
outlinedMusicFile
outlinedNotes
outlinedOpenEnvelope
outlinedPdfFile
outlinedPlusCircle
outlinedQuestionCircle
outlinedSlashCircle
outlinedStarCircle
outlinedTextFile
outlinedTextMessage
outlinedTwoBlankFiles
outlinedVideoFile
outlinedXCircle
paperclip
pencil
pencilCircle
pencilPerson
person
personBadge
phone
pico
plus
plusCircle
plusPerson
printer
pulse
qrCode
question
questionCircle
refresh
reload
rightArrow
rightCaret
rightChevron
rss
rssSquare
search
share
shieldExclamation
showEye
star
starCircle
starSquare
textMessage
textMessageNotifications
thickCheckmark
thickFromBottomArrow
thickToBottomArrow
thickX
threeDots
threeDotsO
threeHorizontalBars
threeHorizontalBarsDownArrow
threeHorizontalListItems
threeLineMusicNote
threeReducingHorizontalBars
threeVerticalBars
toCloudArrow
trash
tray
trendingUp
twoBlankFiles
twoInwardChevrons
twoOutwardChevrons
twoPeople
unlock
upArrow
upCaret
upChevron
videoCamera
viewCardStack
viewTable
x
xCircle
Props
Accepts Box props.