Last active
July 22, 2025 08:02
-
-
Save imliam/1d88e2dcc2acb28a8453d64ea36b36a3 to your computer and use it in GitHub Desktop.
Mapping the icon aliases to their default values in Filament 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Filament\View\PanelsIconAlias; | |
use Filament\Support\Icons\Heroicon; | |
use Filament\Forms\View\FormsIconAlias; | |
use Filament\Tables\View\TablesIconAlias; | |
use Filament\Support\Facades\FilamentIcon; | |
use Filament\Schemas\View\SchemaIconAlias; | |
use Filament\Actions\View\ActionsIconAlias; | |
use Filament\Support\View\SupportIconAlias; | |
use Filament\Widgets\View\WidgetsIconAlias; | |
use Filament\Infolists\View\InfolistsIconAlias; | |
use Filament\Notifications\View\NotificationsIconAlias; | |
/** @see https://filamentphp.com/docs/4.x/styling/icons#available-icon-aliases */ | |
FilamentIcon::register([ | |
ActionsIconAlias::ACTION_GROUP => Heroicon::EllipsisVertical, // Trigger button of an action group | |
ActionsIconAlias::CREATE_ACTION_GROUPED => Heroicon::Plus, // Trigger button of a grouped create action | |
ActionsIconAlias::DELETE_ACTION => Heroicon::Trash, // Trigger button of a delete action | |
ActionsIconAlias::DELETE_ACTION_GROUPED => Heroicon::Trash, // Trigger button of a grouped delete action | |
ActionsIconAlias::DELETE_ACTION_MODAL => Heroicon::OutlinedTrash, // Modal of a delete action | |
ActionsIconAlias::DETACH_ACTION => Heroicon::XMark, // Trigger button of a detach action | |
ActionsIconAlias::DETACH_ACTION_MODAL => Heroicon::OutlinedXMark, // Modal of a detach action | |
ActionsIconAlias::DISSOCIATE_ACTION => Heroicon::XMark, // Trigger button of a dissociate action | |
ActionsIconAlias::DISSOCIATE_ACTION_MODAL => Heroicon::OutlinedXMark, // Modal of a dissociate action | |
ActionsIconAlias::EDIT_ACTION => Heroicon::PencilSquare, // Trigger button of an edit action | |
ActionsIconAlias::EDIT_ACTION_GROUPED => Heroicon::PencilSquare, // Trigger button of a grouped edit action | |
ActionsIconAlias::EXPORT_ACTION_GROUPED => Heroicon::ArrowDownTray, // Trigger button of a grouped export action | |
ActionsIconAlias::FORCE_DELETE_ACTION => Heroicon::Trash, // Trigger button of a force-delete action | |
ActionsIconAlias::FORCE_DELETE_ACTION_GROUPED => Heroicon::Trash, // Trigger button of a grouped force-delete action | |
ActionsIconAlias::FORCE_DELETE_ACTION_MODAL => Heroicon::OutlinedTrash, // Modal of a force-delete action | |
ActionsIconAlias::IMPORT_ACTION_GROUPED => Heroicon::ArrowUpTray, // Trigger button of a grouped import action | |
ActionsIconAlias::MODAL_CONFIRMATION => Heroicon::OutlinedExclamationTriangle, // Modal of an action that requires confirmation | |
ActionsIconAlias::REPLICATE_ACTION => Heroicon::Square2Stack, // Trigger button of a replicate action | |
ActionsIconAlias::REPLICATE_ACTION_GROUPED => Heroicon::Square2Stack, // Trigger button of a grouped replicate action | |
ActionsIconAlias::RESTORE_ACTION => Heroicon::ArrowUturnLeft, // Trigger button of a restore action | |
ActionsIconAlias::RESTORE_ACTION_GROUPED => Heroicon::ArrowUturnLeft, // Trigger button of a grouped restore action | |
ActionsIconAlias::RESTORE_ACTION_MODAL => Heroicon::OutlinedArrowUturnLeft, // Modal of a restore action | |
ActionsIconAlias::VIEW_ACTION => Heroicon::Eye, // Trigger button of a view action | |
ActionsIconAlias::VIEW_ACTION_GROUPED => Heroicon::Eye, // Trigger button of a grouped view action | |
FormsIconAlias::COMPONENTS_BUILDER_ACTIONS_CLONE => Heroicon::Square2Stack, // Trigger button of a clone action in a builder item | |
FormsIconAlias::COMPONENTS_BUILDER_ACTIONS_COLLAPSE => Heroicon::ChevronUp, // Trigger button of a collapse action in a builder item | |
FormsIconAlias::COMPONENTS_BUILDER_ACTIONS_DELETE => Heroicon::Trash, // Trigger button of a delete action in a builder item | |
FormsIconAlias::COMPONENTS_BUILDER_ACTIONS_EXPAND => Heroicon::ChevronDown, // Trigger button of an expand action in a builder item | |
FormsIconAlias::COMPONENTS_BUILDER_ACTIONS_MOVE_DOWN => Heroicon::ArrowDown, // Trigger button of a move down action in a builder item | |
FormsIconAlias::COMPONENTS_BUILDER_ACTIONS_MOVE_UP => Heroicon::ArrowUp, // Trigger button of a move up action in a builder item | |
FormsIconAlias::COMPONENTS_BUILDER_ACTIONS_REORDER => Heroicon::ArrowsUpDown, // Trigger button of a reorder action in a builder item | |
FormsIconAlias::COMPONENTS_CHECKBOX_LIST_SEARCH_FIELD => Heroicon::MagnifyingGlass, // Search input in a checkbox list | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_DRAG_CROP => 'fi-o-crop', // Trigger button of a drag crop action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_DRAG_MOVE => 'fi-o-arrows-move', // Trigger button of a drag move action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_FLIP_HORIZONTAL => 'fi-o-flip-horizontal', // Trigger button of a flip horizontal action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_FLIP_VERTICAL => 'fi-o-flip-vertical', // Trigger button of a flip vertical action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_MOVE_DOWN => Heroicon::ArrowDownCircle, // Trigger button of a move down action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_MOVE_LEFT => Heroicon::ArrowLeftCircle, // Trigger button of a move left action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_MOVE_RIGHT => Heroicon::ArrowRightCircle, // Trigger button of a move right action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_MOVE_UP => Heroicon::ArrowUpCircle, // Trigger button of a move up action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_ROTATE_LEFT => Heroicon::ArrowUturnLeft, // Trigger button of a rotate left action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_ROTATE_RIGHT => Heroicon::ArrowUturnRight, // Trigger button of a rotate right action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_ZOOM_100 => Heroicon::ArrowsPointingOut, // Trigger button of a zoom 100 action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_ZOOM_IN => Heroicon::MagnifyingGlassPlus, // Trigger button of a zoom in action in a file upload editor | |
FormsIconAlias::COMPONENTS_FILE_UPLOAD_EDITOR_ACTIONS_ZOOM_OUT => Heroicon::MagnifyingGlassMinus, // Trigger button of a zoom out action in a file upload editor | |
FormsIconAlias::COMPONENTS_KEY_VALUE_ACTIONS_DELETE => Heroicon::Trash, // Trigger button of a delete action in a key-value field item | |
FormsIconAlias::COMPONENTS_KEY_VALUE_ACTIONS_REORDER => Heroicon::ArrowsUpDown, // Trigger button of a reorder action in a key-value field item | |
FormsIconAlias::COMPONENTS_REPEATER_ACTIONS_CLONE => Heroicon::Square2Stack, // Trigger button of a clone action in a repeater item | |
FormsIconAlias::COMPONENTS_REPEATER_ACTIONS_COLLAPSE => Heroicon::ChevronUp, // Trigger button of a collapse action in a repeater item | |
FormsIconAlias::COMPONENTS_REPEATER_ACTIONS_DELETE => Heroicon::Trash, // Trigger button of a delete action in a repeater item | |
FormsIconAlias::COMPONENTS_REPEATER_ACTIONS_EXPAND => Heroicon::ChevronDown, // Trigger button of an expand action in a repeater item | |
FormsIconAlias::COMPONENTS_REPEATER_ACTIONS_MOVE_DOWN => Heroicon::ArrowDown, // Trigger button of a move down action in a repeater item | |
FormsIconAlias::COMPONENTS_REPEATER_ACTIONS_MOVE_UP => Heroicon::ArrowUp, // Trigger button of a move up action in a repeater item | |
FormsIconAlias::COMPONENTS_REPEATER_ACTIONS_REORDER => Heroicon::ArrowsUpDown, // Trigger button of a reorder action in a repeater item | |
FormsIconAlias::COMPONENTS_RICH_EDITOR_PANELS_CUSTOM_BLOCKS_CLOSE_BUTTON => Heroicon::XMark, // Close button for custom blocks panel in a rich editor | |
FormsIconAlias::COMPONENTS_RICH_EDITOR_PANELS_CUSTOM_BLOCK_DELETE_BUTTON => Heroicon::Trash, // Delete button for a custom block in a rich editor | |
FormsIconAlias::COMPONENTS_RICH_EDITOR_PANELS_CUSTOM_BLOCK_EDIT_BUTTON => Heroicon::PencilSquare, // Edit button for a custom block in a rich editor | |
FormsIconAlias::COMPONENTS_RICH_EDITOR_PANELS_MERGE_TAGS_CLOSE_BUTTON => Heroicon::XMark, // Close button for merge tags panel in a rich editor | |
FormsIconAlias::COMPONENTS_SELECT_ACTIONS_CREATE_OPTION => Heroicon::Plus, // Trigger button of a create option action in a select field | |
FormsIconAlias::COMPONENTS_SELECT_ACTIONS_EDIT_OPTION => Heroicon::PencilSquare, // Trigger button of an edit option action in a select field | |
FormsIconAlias::COMPONENTS_TEXT_INPUT_ACTIONS_HIDE_PASSWORD => Heroicon::EyeSlash, // Trigger button of a hide password action in a text input field | |
FormsIconAlias::COMPONENTS_TEXT_INPUT_ACTIONS_SHOW_PASSWORD => Heroicon::Eye, // Trigger button of a show password action in a text input field | |
FormsIconAlias::COMPONENTS_TOGGLE_BUTTONS_BOOLEAN_FALSE => Heroicon::XMark, // “False” option of a boolean() toggle buttons field | |
FormsIconAlias::COMPONENTS_TOGGLE_BUTTONS_BOOLEAN_TRUE => Heroicon::Check, // “True” option of a boolean() toggle buttons field | |
InfolistsIconAlias::COMPONENTS_ICON_ENTRY_FALSE => Heroicon::OutlinedXCircle, // Falsy state of an icon entry | |
InfolistsIconAlias::COMPONENTS_ICON_ENTRY_TRUE => Heroicon::OutlinedCheckCircle, // Truthy state of an icon entry | |
NotificationsIconAlias::DATABASE_MODAL_EMPTY_STATE => Heroicon::OutlinedBellSlash, // Empty state of the database notifications modal | |
NotificationsIconAlias::NOTIFICATION_CLOSE_BUTTON => Heroicon::XMark, // Button to close a notification | |
NotificationsIconAlias::NOTIFICATION_DANGER => Heroicon::OutlinedXCircle, // Danger notification | |
NotificationsIconAlias::NOTIFICATION_INFO => Heroicon::OutlinedInformationCircle, // Info notification | |
NotificationsIconAlias::NOTIFICATION_SUCCESS => Heroicon::OutlinedCheckCircle, // Success notification | |
NotificationsIconAlias::NOTIFICATION_WARNING => Heroicon::OutlinedExclamationCircle, // Warning notification | |
PanelsIconAlias::GLOBAL_SEARCH_FIELD => Heroicon::MagnifyingGlass, // Global search field | |
PanelsIconAlias::PAGES_DASHBOARD_ACTIONS_FILTER => Heroicon::Funnel, // Trigger button of the dashboard filter action | |
PanelsIconAlias::PAGES_DASHBOARD_NAVIGATION_ITEM => Heroicon::Home, // Dashboard page navigation item | |
PanelsIconAlias::PAGES_PASSWORD_RESET_REQUEST_PASSWORD_RESET_ACTIONS_LOGIN => Heroicon::ArrowLeft, // Trigger button of the login action on the request password reset page | |
PanelsIconAlias::PAGES_PASSWORD_RESET_REQUEST_PASSWORD_RESET_ACTIONS_LOGIN_RTL => Heroicon::ArrowRight, // Trigger button of the login action on the request password reset page (right-to-left direction) | |
PanelsIconAlias::RESOURCES_PAGES_EDIT_RECORD_NAVIGATION_ITEM => Heroicon::OutlinedPencilSquare, // Resource edit record page navigation item | |
PanelsIconAlias::RESOURCES_PAGES_MANAGE_RELATED_RECORDS_NAVIGATION_ITEM => Heroicon::OutlinedRectangleStack, // Resource manage related records page navigation item | |
PanelsIconAlias::RESOURCES_PAGES_VIEW_RECORD_NAVIGATION_ITEM => Heroicon::OutlinedEye, // Resource view record page navigation item | |
PanelsIconAlias::SIDEBAR_COLLAPSE_BUTTON => Heroicon::OutlinedChevronLeft, // Button to collapse the sidebar | |
PanelsIconAlias::SIDEBAR_COLLAPSE_BUTTON_RTL => Heroicon::OutlinedChevronRight, // Button to collapse the sidebar (right-to-left direction) | |
PanelsIconAlias::SIDEBAR_EXPAND_BUTTON => Heroicon::OutlinedChevronRight, // Button to expand the sidebar | |
PanelsIconAlias::SIDEBAR_EXPAND_BUTTON_RTL => Heroicon::OutlinedChevronLeft, // Button to expand the sidebar (right-to-left direction) | |
PanelsIconAlias::SIDEBAR_GROUP_COLLAPSE_BUTTON => Heroicon::ChevronUp, // Collapse button for a sidebar group | |
PanelsIconAlias::TENANT_MENU_BILLING_BUTTON => Heroicon::CreditCard, // Billing button in the tenant menu | |
PanelsIconAlias::TENANT_MENU_PROFILE_BUTTON => Heroicon::Cog6Tooth, // Profile button in the tenant menu | |
PanelsIconAlias::TENANT_MENU_REGISTRATION_BUTTON => Heroicon::Plus, // Registration button in the tenant menu | |
PanelsIconAlias::TENANT_MENU_TOGGLE_BUTTON => Heroicon::ChevronDown, // Button to toggle the tenant menu | |
PanelsIconAlias::THEME_SWITCHER_LIGHT_BUTTON => Heroicon::Sun, // Button to switch to the light theme from the theme switcher | |
PanelsIconAlias::THEME_SWITCHER_DARK_BUTTON => Heroicon::Moon, // Button to switch to the dark theme from the theme switcher | |
PanelsIconAlias::THEME_SWITCHER_SYSTEM_BUTTON => Heroicon::ComputerDesktop, // Button to switch to the system theme from the theme switcher | |
PanelsIconAlias::TOPBAR_CLOSE_SIDEBAR_BUTTON => Heroicon::OutlinedXMark, // Button to close the sidebar | |
PanelsIconAlias::TOPBAR_OPEN_SIDEBAR_BUTTON => Heroicon::OutlinedBars3, // Button to open the sidebar | |
PanelsIconAlias::TOPBAR_GROUP_TOGGLE_BUTTON => Heroicon::ChevronDown, // Toggle button for a topbar group | |
PanelsIconAlias::TOPBAR_OPEN_DATABASE_NOTIFICATIONS_BUTTON => Heroicon::OutlinedBell, // Button to open the database notifications modal | |
PanelsIconAlias::USER_MENU_PROFILE_ITEM => Heroicon::UserCircle, // Profile item in the user menu | |
PanelsIconAlias::USER_MENU_LOGOUT_BUTTON => Heroicon::ArrowLeftOnRectangle, // Button in the user menu to log out | |
PanelsIconAlias::WIDGETS_ACCOUNT_LOGOUT_BUTTON => Heroicon::ArrowLeftOnRectangle, // Button in the account widget to log out | |
PanelsIconAlias::WIDGETS_FILAMENT_INFO_OPEN_DOCUMENTATION_BUTTON => Heroicon::BookOpen, // Button to open the documentation from the Filament info widget | |
PanelsIconAlias::WIDGETS_FILAMENT_INFO_OPEN_GITHUB_BUTTON => null, // Button to open GitHub from the Filament info widget | |
SchemaIconAlias::COMPONENTS_WIZARD_COMPLETED_STEP => Heroicon::OutlinedCheck, // Completed step in a wizard | |
TablesIconAlias::ACTIONS_DISABLE_REORDERING => Heroicon::Check, // Trigger button of the disable reordering action | |
TablesIconAlias::ACTIONS_ENABLE_REORDERING => Heroicon::ArrowsUpDown, // Trigger button of the enable reordering action | |
TablesIconAlias::ACTIONS_FILTER => Heroicon::Funnel, // Trigger button of the filter action | |
TablesIconAlias::ACTIONS_GROUP => Heroicon::RectangleStack, // Trigger button of a group records action | |
TablesIconAlias::ACTIONS_OPEN_BULK_ACTIONS => Heroicon::EllipsisVertical, // Trigger button of an open bulk actions action | |
TablesIconAlias::ACTIONS_COLUMN_MANAGER => Heroicon::ViewColumns, // Trigger button of the column manager action | |
TablesIconAlias::COLUMNS_COLLAPSE_BUTTON => Heroicon::ChevronDown, // Button to collapse a column | |
TablesIconAlias::COLUMNS_ICON_COLUMN_FALSE => Heroicon::OutlinedXCircle, // Falsy state of an icon column | |
TablesIconAlias::COLUMNS_ICON_COLUMN_TRUE => Heroicon::OutlinedCheckCircle, // Truthy state of an icon column | |
TablesIconAlias::EMPTY_STATE => Heroicon::OutlinedXMark, // Empty state icon | |
TablesIconAlias::FILTERS_QUERY_BUILDER_CONSTRAINTS_BOOLEAN => Heroicon::CheckCircle, // Default icon for a boolean constraint in the query builder | |
TablesIconAlias::FILTERS_QUERY_BUILDER_CONSTRAINTS_DATE => Heroicon::Calendar, // Default icon for a date constraint in the query builder | |
TablesIconAlias::FILTERS_QUERY_BUILDER_CONSTRAINTS_NUMBER => Heroicon::Variable, // Default icon for a number constraint in the query builder | |
TablesIconAlias::FILTERS_QUERY_BUILDER_CONSTRAINTS_RELATIONSHIP => Heroicon::ArrowsPointingOut, // Default icon for a relationship constraint in the query builder | |
TablesIconAlias::FILTERS_QUERY_BUILDER_CONSTRAINTS_SELECT => Heroicon::ChevronUpDown, // Default icon for a select constraint in the query builder | |
TablesIconAlias::FILTERS_QUERY_BUILDER_CONSTRAINTS_TEXT => Heroicon::Language, // Default icon for a text constraint in the query builder | |
TablesIconAlias::FILTERS_REMOVE_ALL_BUTTON => Heroicon::XMark, // Button to remove all filters | |
TablesIconAlias::GROUPING_COLLAPSE_BUTTON => Heroicon::ChevronUp, // Button to collapse a group of records | |
TablesIconAlias::HEADER_CELL_SORT_ASC_BUTTON => Heroicon::ChevronUp, // Sort button of a column sorted in ascending order | |
TablesIconAlias::HEADER_CELL_SORT_BUTTON => Heroicon::ChevronDown, // Sort button of a column when it is currently not sorted | |
TablesIconAlias::HEADER_CELL_SORT_DESC_BUTTON => Heroicon::ChevronDown, // Sort button of a column sorted in descending order | |
TablesIconAlias::REORDER_HANDLE => Heroicon::Bars2, // Handle to grab in order to reorder a record with drag and drop | |
TablesIconAlias::SEARCH_FIELD => Heroicon::MagnifyingGlass, // Search input | |
SupportIconAlias::BADGE_DELETE_BUTTON => Heroicon::XMark, // Button to delete a badge | |
SupportIconAlias::BREADCRUMBS_SEPARATOR => Heroicon::ChevronRight, // Separator between breadcrumbs | |
SupportIconAlias::BREADCRUMBS_SEPARATOR_RTL => Heroicon::ChevronLeft, // Separator between breadcrumbs (right-to-left direction) | |
SupportIconAlias::MODAL_CLOSE_BUTTON => Heroicon::OutlinedXMark, // Button to close a modal | |
SupportIconAlias::PAGINATION_FIRST_BUTTON => Heroicon::ChevronDoubleLeft, // Button to go to the first page | |
SupportIconAlias::PAGINATION_FIRST_BUTTON_RTL => Heroicon::ChevronDoubleRight, // Button to go to the first page (right-to-left direction) | |
SupportIconAlias::PAGINATION_LAST_BUTTON => Heroicon::ChevronDoubleRight, // Button to go to the last page | |
SupportIconAlias::PAGINATION_LAST_BUTTON_RTL => Heroicon::ChevronDoubleLeft, // Button to go to the last page (right-to-left direction) | |
SupportIconAlias::PAGINATION_NEXT_BUTTON => Heroicon::ChevronRight, // Button to go to the next page | |
SupportIconAlias::PAGINATION_NEXT_BUTTON_RTL => Heroicon::ChevronLeft, // Button to go to the next page (right-to-left direction) | |
SupportIconAlias::PAGINATION_PREVIOUS_BUTTON => Heroicon::ChevronLeft, // Button to go to the previous page | |
SupportIconAlias::PAGINATION_PREVIOUS_BUTTON_RTL => Heroicon::ChevronRight, // Button to go to the previous page (right-to-left direction) | |
SupportIconAlias::SECTION_COLLAPSE_BUTTON => Heroicon::ChevronUp, // Button to collapse a section | |
WidgetsIconAlias::CHART_WIDGET_FILTER => Heroicon::Funnel, // Button of the filter action | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment