react-feather#Edit3 TypeScript Examples
The following examples show how to use
react-feather#Edit3.
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: ViewMode.tsx From yet-another-generic-startpage with MIT License | 6 votes |
ViewMode = ({ label, addBookmark, onRemove, onEdit, bookmarkCount, }: ViewModeProps) => ( <TitleLayout> <GroupName>{label}</GroupName> <div> <IconButton icon={Plus} label={`Add new bookmark to ${label}`} onClick={addBookmark} disabled={bookmarkCount >= 4} /> <IconButton icon={Edit3} label={`Edit group ${label}`} onClick={onEdit} /> <IconButton icon={Trash} label={`Remove group ${label}`} onClick={onRemove} /> </div> </TitleLayout> )
Example #2
Source File: ItemViewMode.tsx From yet-another-generic-startpage with MIT License | 6 votes |
ItemViewMode = ({ label, url, designator, onRemoveClick, onEditClick, }: ItemViewModeProps) => ( <Wrapper> <Label>{label}</Label> <Url url={url} /> <Actions> <IconButton icon={Edit3} label={`Edit ${label} ${designator}`} onClick={onEditClick} /> <IconButton icon={Trash} label={`Remove ${label} ${designator}`} onClick={onRemoveClick} /> </Actions> </Wrapper> )