@ant-design/icons APIs
- DeleteOutlined
- PlusOutlined
- SettingOutlined
- UserOutlined
- ExclamationCircleOutlined
- CloseOutlined
- DownOutlined
- SearchOutlined
- EditOutlined
- QuestionCircleOutlined
- LoadingOutlined
- CopyOutlined
- DownloadOutlined
- LogoutOutlined
- LeftOutlined
- PlusCircleOutlined
- MinusCircleOutlined
- CloseCircleOutlined
- CheckOutlined
- UploadOutlined
- ReloadOutlined
- InfoCircleOutlined
- SaveOutlined
- GithubOutlined
- LockOutlined
- RightOutlined
- CodeOutlined
- EyeOutlined
- EllipsisOutlined
- CaretRightOutlined
- CheckCircleOutlined
- SyncOutlined
- LinkOutlined
- HomeOutlined
- MenuUnfoldOutlined
- FullscreenExitOutlined
- FullscreenOutlined
- MenuOutlined
- BellOutlined
- MenuFoldOutlined
- AppstoreOutlined
- FormOutlined
- CaretDownOutlined
- UndoOutlined
- TeamOutlined
- ArrowDownOutlined
- ArrowLeftOutlined
- ClearOutlined
- RedoOutlined
- GlobalOutlined
- ExportOutlined
- ClockCircleOutlined
- PlayCircleOutlined
- MoreOutlined
- UpOutlined
- UnorderedListOutlined
- MessageOutlined
- ArrowUpOutlined
- FilterOutlined
- StarOutlined
- StopOutlined
- EyeInvisibleOutlined
- BgColorsOutlined
- WarningOutlined
- createFromIconfontCN
- MailOutlined
- ArrowRightOutlined
- AreaChartOutlined
- SendOutlined
- DatabaseOutlined
- CalendarOutlined
- VerticalAlignBottomOutlined
- PictureOutlined
- ProfileOutlined
- FileTextOutlined
- DeploymentUnitOutlined
- QuestionOutlined
- UserAddOutlined
- ApiOutlined
- AppstoreAddOutlined
- RollbackOutlined
- BoldOutlined
- ItalicOutlined
- UnderlineOutlined
- VerticalAlignTopOutlined
- SnippetsOutlined
- HighlightOutlined
- WeiboCircleOutlined
- ApartmentOutlined
- BugOutlined
- DashboardOutlined
- HistoryOutlined
- CloseCircleFilled
- SmileOutlined
- BarsOutlined
- InfoOutlined
- PhoneOutlined
- BarChartOutlined
- LineChartOutlined
- PieChartOutlined
- CommentOutlined
- UsergroupAddOutlined
- ExclamationCircleFilled
- ControlOutlined
- GoogleOutlined
- InboxOutlined
- ShareAltOutlined
- ReadOutlined
- CheckCircleFilled
- BlockOutlined
- NotificationOutlined
- DesktopOutlined
- FileOutlined
- MinusOutlined
- FieldTimeOutlined
- PlusSquareOutlined
- DiffOutlined
- AlignCenterOutlined
- ZoomInOutlined
- ZoomOutOutlined
- AlipayCircleOutlined
- FileAddOutlined
- FolderAddOutlined
- FolderOpenOutlined
- NumberOutlined
- PauseOutlined
- ContactsOutlined
- CloudSyncOutlined
- TableOutlined
- ContainerOutlined
- TagOutlined
- VideoCameraOutlined
- BookOutlined
- ToolOutlined
- SlackOutlined
- MobileOutlined
- SwapOutlined
- LockFilled
- CloudDownloadOutlined
- StarFilled
- FontSizeOutlined
- BranchesOutlined
- UpCircleOutlined
- DownCircleOutlined
- DoubleRightOutlined
- MinusSquareOutlined
- AlignLeftOutlined
- AlignRightOutlined
- SmallDashOutlined
- TaobaoCircleOutlined
- BuildOutlined
- CloudUploadOutlined
- FolderOutlined
- GroupOutlined
- Loading3QuartersOutlined
- QrcodeOutlined
- FolderFilled
- InfoCircleFilled
- PlusCircleFilled
- SmileTwoTone
- HeartTwoTone
- CheckCircleTwoTone
- EditFilled
- UserDeleteOutlined
- MacCommandOutlined
- PushpinOutlined
- CoffeeOutlined
- ProjectOutlined
- OrderedListOutlined
- FundOutlined
- RiseOutlined
- AimOutlined
- CalculatorOutlined
- GatewayOutlined
- KeyOutlined
- GitlabOutlined
- BulbOutlined
- CloseSquareOutlined
- PlaySquareOutlined
- RocketOutlined
- ClusterOutlined
- ArrowsAltOutlined
- DragOutlined
- CaretUpOutlined
- DoubleLeftOutlined
- EnterOutlined
- RetweetOutlined
- ScissorOutlined
- StrikethroughOutlined
- ColumnWidthOutlined
- DingdingOutlined
- TwitterOutlined
- QqOutlined
- ZhihuOutlined
- BorderOutlined
- CameraOutlined
- EnvironmentOutlined
- FieldNumberOutlined
- FileExcelOutlined
- FileImageOutlined
- FilePptOutlined
- FileSearchOutlined
- FormatPainterOutlined
- FunctionOutlined
- HourglassOutlined
- LayoutOutlined
- OneToOneOutlined
- PartitionOutlined
- PoweroffOutlined
- PrinterOutlined
- SafetyCertificateOutlined
- SolutionOutlined
- TagsOutlined
- UngroupOutlined
- CopyFilled
- DeleteTwoTone
- QuestionCircleFilled
- StepBackwardOutlined
- StepForwardOutlined
- CopyrightOutlined
- CrownOutlined
- ExclamationOutlined
- PaperClipOutlined
- DashOutlined
- CloseCircleTwoTone
- ExclamationCircleTwoTone
- FlagOutlined
- FunnelPlotOutlined
- InteractionOutlined
- CheckSquareOutlined
- LaptopOutlined
- CustomerServiceOutlined
- WarningFilled
- ApiTwoTone
- ApiFilled
- MergeCellsOutlined
- SlackSquareOutlined
- FallOutlined
- PercentageOutlined
- DollarOutlined
- CloudServerOutlined
- UnlockOutlined
- PicCenterOutlined
- FontColorsOutlined
- GithubFilled
- CaretLeftOutlined
- LeftCircleOutlined
- RightCircleOutlined
- VerticalAlignMiddleOutlined
- BackwardOutlined
- SwapRightOutlined
- LoginOutlined
- BorderBottomOutlined
- BorderLeftOutlined
- BorderRightOutlined
- BorderTopOutlined
- RadiusBottomleftOutlined
- RadiusBottomrightOutlined
- RadiusUpleftOutlined
- RadiusUprightOutlined
- PauseCircleOutlined
- IssuesCloseOutlined
- SortAscendingOutlined
- SortDescendingOutlined
- RadiusSettingOutlined
- ColumnHeightOutlined
- RadarChartOutlined
- BoxPlotOutlined
- WindowsOutlined
- WeiboOutlined
- WechatOutlined
- FacebookOutlined
- CodepenCircleOutlined
- AntDesignOutlined
- AliyunOutlined
- InstagramOutlined
- YuqueOutlined
- RedditOutlined
- AlertOutlined
- AudioOutlined
- AuditOutlined
- BankOutlined
- CompressOutlined
- ConsoleSqlOutlined
- CopyrightCircleOutlined
- CreditCardOutlined
- DeleteRowOutlined
- DisconnectOutlined
- ExceptionOutlined
- ExpandOutlined
- ExperimentOutlined
- FieldStringOutlined
- FileDoneOutlined
- FileProtectOutlined
- FileUnknownOutlined
- FireOutlined
- FolderViewOutlined
- FrownOutlined
- FundProjectionScreenOutlined
- FundViewOutlined
- GoldOutlined
- HddOutlined
- HeartOutlined
- InsertRowBelowOutlined
- InsertRowLeftOutlined
- LikeOutlined
- LineOutlined
- MonitorOutlined
- NodeIndexOutlined
- RotateRightOutlined
- SafetyOutlined
- SelectOutlined
- SisternodeOutlined
- SkinOutlined
- SubnodeOutlined
- SwitcherOutlined
- ThunderboltOutlined
- UserSwitchOutlined
- WalletOutlined
- FolderOpenFilled
- ProfileFilled
- HomeFilled
- DatabaseFilled
- PictureFilled
- LockTwoTone
- MailTwoTone
- MobileTwoTone
- ThunderboltFilled
- RobotFilled
- RestFilled
- DeleteFilled
- BankFilled
- SoundFilled
- CaretRightFilled
- QuestionCircleTwoTone
- SettingFilled
- EyeTwoTone
- ToolFilled
- CheckSquareFilled
- CloseSquareFilled
- RocketFilled
- PushpinFilled
- CrownFilled
- AppstoreFilled
- PlusCircleTwoTone
- AppleOutlined
- AndroidOutlined
- DropboxOutlined
- BehanceOutlined
- FastBackwardOutlined
- FastForwardOutlined
- ShrinkOutlined
- VerticalLeftOutlined
- VerticalRightOutlined
- ForwardOutlined
- SwapLeftOutlined
- UpSquareOutlined
- DownSquareOutlined
- LeftSquareOutlined
- RightSquareOutlined
- BorderHorizontalOutlined
- BorderInnerOutlined
- BorderOuterOutlined
- BorderVerticleOutlined
- PicLeftOutlined
- PicRightOutlined
- LineHeightOutlined
- DotChartOutlined
- HeatMapOutlined
- StockOutlined
- SlidersOutlined
- IeOutlined
- ChromeOutlined
- AliwangwangOutlined
- WeiboSquareOutlined
- Html5Outlined
- YoutubeOutlined
- TaobaoOutlined
- SkypeOutlined
- MediumWorkmarkOutlined
- MediumOutlined
- LinkedinOutlined
- GooglePlusOutlined
- CodepenOutlined
- CodeSandboxOutlined
- AmazonOutlined
- AlipayOutlined
- AntCloudOutlined
- BehanceSquareOutlined
- DribbbleOutlined
- DribbbleSquareOutlined
- AlibabaOutlined
- YahooOutlined
- SketchOutlined
- AccountBookOutlined
- AudioMutedOutlined
- BarcodeOutlined
- BorderlessTableOutlined
- CarOutlined
- CarryOutOutlined
- CiCircleOutlined
- CiOutlined
- CloudOutlined
- CompassOutlined
- DeleteColumnOutlined
- DeliveredProcedureOutlined
- DingtalkOutlined
- DislikeOutlined
- DollarCircleOutlined
- EuroCircleOutlined
- EuroOutlined
- ExpandAltOutlined
- FieldBinaryOutlined
- FileExclamationOutlined
- FileGifOutlined
- FileJpgOutlined
- FileMarkdownOutlined
- FilePdfOutlined
- FileSyncOutlined
- FileWordOutlined
- FileZipOutlined
- ForkOutlined
- GifOutlined
- GiftOutlined
- IdcardOutlined
- ImportOutlined
- InsertRowAboveOutlined
- InsertRowRightOutlined
- InsuranceOutlined
- ManOutlined
- MedicineBoxOutlined
- MehOutlined
- MoneyCollectOutlined
- NodeCollapseOutlined
- NodeExpandOutlined
- PayCircleOutlined
- PoundCircleOutlined
- PoundOutlined
- PropertySafetyOutlined
- PullRequestOutlined
- ReconciliationOutlined
- RedEnvelopeOutlined
- RestOutlined
- RobotOutlined
- RotateLeftOutlined
- ScanOutlined
- ScheduleOutlined
- SecurityScanOutlined
- ShakeOutlined
- ShopOutlined
- ShoppingCartOutlined
- ShoppingOutlined
- SoundOutlined
- SplitCellsOutlined
- TabletOutlined
- ToTopOutlined
- TrademarkCircleOutlined
- TrademarkOutlined
- TransactionOutlined
- TranslationOutlined
- TrophyOutlined
- UsbOutlined
- UsergroupDeleteOutlined
- VerifiedOutlined
- VideoCameraAddOutlined
- WhatsAppOutlined
- WifiOutlined
- WomanOutlined
- AlertFilled
- GoldenFilled
- MessageFilled
- BuildFilled
- PieChartFilled
- PlayCircleFilled
- StarTwoTone
- FacebookFilled
- CloudFilled
- NotificationFilled
- EyeFilled
- EyeInvisibleFilled
- SnippetsFilled
- HolderOutlined
- FilterFilled
- CreditCardFilled
- WechatFilled
- FilePdfFilled
- CaretDownFilled
- PlusSquareFilled
- TagsFilled
- BookFilled
- ContactsFilled
- TrophyTwoTone
- FundFilled
- WarningTwoTone
- SafetyCertificateFilled
- SaveFilled
- CodeFilled
- FolderAddFilled
- LinkedinFilled
- BellFilled
- FolderTwoTone
- CodeTwoTone
- DownCircleTwoTone
- UpCircleTwoTone
- ChromeFilled
- ThunderboltTwoTone
- PlaySquareTwoTone
- CompassTwoTone
Other Related APIs
@ant-design/icons#MessageFilled TypeScript Examples
The following examples show how to use
@ant-design/icons#MessageFilled.
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: any-brick.editor.tsx From next-basics with GNU General Public License v3.0 | 5 votes |
export function AnyBrickEditor({
nodeUid,
}: EditorComponentProps): React.ReactElement {
const node = useBuilderNode({ nodeUid });
const mountPoints = useBuilderNodeMountPoints({ nodeUid });
let icon: JSX.Element;
let displayType = DisplayType.DEFAULT;
if (node.type === "provider" || node.bg) {
displayType = DisplayType.PROVIDER;
icon = <DatabaseFilled />;
} else if (node.type === "template") {
displayType = DisplayType.TEMPLATE;
icon = <GoldenFilled />;
} else if (node.portal) {
displayType = DisplayType.PORTAL;
icon = <MessageFilled />;
}
return (
<EditorContainer nodeUid={nodeUid}>
<div
className={classNames(
styles.wrapper,
styles[displayType],
mountPoints.length > 0 ? styles.hasChildren : styles.noChildren,
{
[styles.isExpandableTemplate]: node.$$isExpandableTemplate,
}
)}
>
{mountPoints.length > 0 ? (
mountPoints.map((mountPoint) => (
<SlotContainer
key={mountPoint}
nodeUid={nodeUid}
slotName={mountPoint}
/>
))
) : (
<>
{icon && <div className={styles.icon}>{icon}</div>}
<div className={styles.name}>{node.alias}</div>
</>
)}
</div>
</EditorContainer>
);
}
Example #2
Source File: BuilderCanvasTabs.tsx From next-basics with GNU General Public License v3.0 | 4 votes |
export function BuilderCanvasTabs(): React.ReactElement {
const { t } = useTranslation(NS_NEXT_BUILDER);
const { canvasIndex, setCanvasIndex } = useBuilderUIContext();
const { edges } = useBuilderData();
const groupedRootChildNodes = useBuilderGroupedChildNodes({
isRoot: true,
doNotExpandTemplates: true,
});
const rootChildNodes = groupedRootChildNodes.flatMap(
(group) => group.childNodes
);
const canvasList = useCanvasList(rootChildNodes);
const hoverNodeUid = useHoverNodeUid();
const highlightedNodes = useHighlightNodes();
const nodeUidToCanvasIndexMap: Map<number, number> = useMemo(() => {
const map = new Map<number, number>();
canvasList.forEach((nodes, index) => {
const walk = (ids: number[]): void => {
for (const nodeUid of ids) {
map.set(nodeUid, index);
walk(
edges
.filter((edge) => edge.parent === nodeUid)
.map((edge) => edge.child)
);
}
};
walk(nodes.map((node) => node.$$uid));
});
return map;
}, [canvasList, edges]);
const tabs = useMemo(
() =>
// The first canvas should always be the main canvas.
// And the last canvas should always be an empty portal canvas.
canvasList.map((nodes, index) => (
<li
key={index}
className={classNames({
[styles.active]: canvasIndex === index,
[styles.isPortalCanvas]: index > 0,
[styles.hover]:
hoverNodeUid &&
canvasIndex !== index &&
nodeUidToCanvasIndexMap.get(hoverNodeUid) === index,
[styles.highlighted]:
canvasIndex !== index &&
Array.from(highlightedNodes).some(
(uid) => nodeUidToCanvasIndexMap.get(uid) === index
),
})}
onClick={canvasIndex === index ? null : () => setCanvasIndex(index)}
title={index === 0 ? null : t(K.CANVAS_TYPE_PORTAL)}
>
<span className={styles.tab}>
{index > 0 && <MessageFilled />}
{index === 0
? t(K.CANVAS_TYPE_MAIN)
: nodes.length > 0 && (
<span className={styles.portalAlias}>{nodes[0].alias}</span>
)}
</span>
</li>
)),
[
canvasIndex,
canvasList,
highlightedNodes,
hoverNodeUid,
nodeUidToCanvasIndexMap,
setCanvasIndex,
t,
]
);
return (
<div className={styles.tabsOuterWrapper}>
<div
className={classNames(
styles.tabsInnerWrapper,
sharedStyles.customScrollbarContainer
)}
>
<ul className={styles.tabs}>{tabs}</ul>
</div>
</div>
);
}
Example #3
Source File: StoryboardTreeNode.tsx From next-basics with GNU General Public License v3.0 | 4 votes |
export function StoryboardTreeNode({
nodeUid,
mountPoint,
level,
}: StoryboardTreeNodeProps): React.ReactElement {
const node = useBuilderNode({ nodeUid });
const { highlightNodes } = useBuilderUIContext();
const hoverNodeUid = useHoverNodeUid();
const mountPoints = useBuilderNodeMountPoints({
nodeUid,
doNotExpandTemplates: true,
});
const parentNode = useBuilderParentNode(nodeUid);
const siblingGroups = useBuilderGroupedChildNodes({
nodeUid: parentNode.$$uid,
doNotExpandTemplates: true,
});
const manager = useBuilderDataManager();
const canDrop = useCanDrop();
const contextMenuStatus = useBuilderContextMenuStatus();
const outlineApplicable = node.brick === "basic-bricks.easy-view";
const outlineEnabled = useOutlineEnabled(node.instanceId, !outlineApplicable);
const handleClick = useCallback(() => {
manager.nodeClick(node);
}, [manager, node]);
const hover = useMemo(
() => hoverNodeUid === nodeUid,
[hoverNodeUid, nodeUid]
);
const [{ isDragging }, dragRef, draggingPreviewRef] = useDrag({
item: {
type: StoryboardTreeTransferType.NODE,
nodeUid,
nodeId: node.id,
nodeInstanceId: node.instanceId,
nodeType: node.type,
},
collect: (monitor) => ({
isDragging: monitor.isDragging(),
}),
});
const [{ isDraggingOverCurrent }, dropRef] = useDrop({
accept: StoryboardTreeTransferType.NODE,
canDrop: (item: DraggingNodeItem) =>
canDrop(item.nodeUid, nodeUid) &&
(Number(isRouteNode(node)) ^
Number(isRouteNode({ type: item.nodeType } as any))) ===
0,
collect: (monitor) => ({
isDraggingOverCurrent: monitor.isOver() && monitor.canDrop(),
}),
drop: (item, monitor) => {
if (!monitor.didDrop()) {
let droppingIndex = -1;
for (const group of siblingGroups) {
droppingIndex = group.childNodes.findIndex(
(n) => n.$$uid === nodeUid
);
if (droppingIndex > -1) {
// When dropping a node on another node,
// we say it drops *under* the target node.
// So add `droppingIndex` by 1.
droppingIndex += 1;
break;
}
}
handleDropOnNode({
draggingItem: item,
droppingMountPoint: mountPoint,
droppingParentNode: parentNode,
droppingSiblingGroups: siblingGroups,
droppingIndex,
manager,
});
}
},
});
const handleContextMenu = useCallback(
(event: React.MouseEvent) => {
event.preventDefault();
manager.contextMenuChange({
active: true,
node,
x: event.clientX,
y: event.clientY,
});
},
[manager, node]
);
let icon: JSX.Element;
let displayType = DisplayType.DEFAULT;
if (node.type === "provider" || node.bg) {
displayType = DisplayType.PROVIDER;
icon = <DatabaseFilled />;
} else if (node.portal) {
displayType = DisplayType.PORTAL;
icon = <MessageFilled />;
} else if (isRouteNode(node)) {
displayType = DisplayType.ROUTE;
icon = <BranchesOutlined />;
}
const handleMouseEnter = useCallback((): void => {
const prevUid = manager.getHoverNodeUid();
if (prevUid !== node.$$uid) {
manager.setHoverNodeUid(node.$$uid);
}
}, [manager, node]);
const handleMouseLeave = useCallback((): void => {
const prevUid = manager.getHoverNodeUid();
if (prevUid === node.$$uid) {
manager.setHoverNodeUid(undefined);
}
}, [manager, node]);
const handleOutlineToggle = useCallback(
(event: React.MouseEvent) => {
event.stopPropagation();
manager.toggleOutline(node.instanceId);
},
[manager, node]
);
return (
<li
className={classNames(
styles.treeNode,
{
[styles.dragging]: isDragging,
[styles.draggingNodeOverCurrent]: isDraggingOverCurrent,
},
styles[displayType]
)}
ref={draggingPreviewRef}
>
<div
className={classNames(styles.nodeNameWrapper, {
[styles.highlightNode]: highlightNodes.has(nodeUid),
[styles.nodeNameWrapperHover]:
hover ||
(contextMenuStatus.active &&
contextMenuStatus.node.$$uid === nodeUid),
})}
style={{
paddingLeft: level * treeViewPaddingUnit,
}}
onClick={handleClick}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
onContextMenu={handleContextMenu}
ref={(node) => dragRef(dropRef(node))}
>
{icon && <div className={styles.icon}>{icon}</div>}
<div className={styles.nodeName} title={node.alias}>
{node.alias}
</div>
{outlineApplicable && (
<div
className={classNames(styles.outlineToggle, {
[styles.outlineEnabled]: outlineEnabled,
})}
onClick={handleOutlineToggle}
>
grid
</div>
)}
</div>
{mountPoints.length > 0 && (
<ul className={styles.mountPointList}>
{mountPoints.map((childMountPoint) => (
<StoryboardTreeMountPoint
level={level + 1}
key={childMountPoint}
nodeUid={nodeUid}
mountPoint={childMountPoint}
/>
))}
</ul>
)}
<div
className={styles.dropCursor}
style={{
left: level * treeViewPaddingUnit,
}}
/>
</li>
);
}