.. This reStructured text file has been automatically generated, do not change. .. Source: https://github.com/TYPO3/typo3/blob/main/typo3/sysext/core/Classes/ViewHelpers/IconViewHelper.php :edit-on-github-link: https://github.com/TYPO3/typo3/edit/main/typo3/sysext/core/Classes/ViewHelpers/IconViewHelper.php :navigation-title: icon .. include:: /Includes.rst.txt .. _typo3-core-icon: ============================= Icon ViewHelper `` ============================= .. note:: This ViewHelper is not available by default. :ref:`Import its namespace ` :fluid:`{namespace core=TYPO3\CMS\Core\ViewHelpers\}` in the Fluid file or :fluid:`xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers/"` in the opening HTML tag. Displays icon identified by icon identifier. Examples ======== Default:: Output:: Inline:: Output:: .. _typo3-core-icon_source: Source code =========== Go to the source code of this ViewHelper: `IconViewHelper.php (GitHub) `__. .. _typo3-core-icon_arguments: Arguments ========= The following arguments are available for ``: .. confval-menu:: :display: table :type: :Default: .. _typo3-core-icon-identifier_argument: .. confval:: identifier :name: typo3-core-icon-identifier :type: string :required: true Identifier of the icon as registered in the Icon Registry. .. _typo3-core-icon-size_argument: .. confval:: size :name: typo3-core-icon-size :type: string :Default: 'small' :required: false Desired size of the icon. All values of the IconSize enum are allowed, these are: "small", "default", "medium", "large" and "mega". .. _typo3-core-icon-overlay_argument: .. confval:: overlay :name: typo3-core-icon-overlay :type: string :required: false Identifier of an overlay icon as registered in the Icon Registry. .. _typo3-core-icon-state_argument: .. confval:: state :name: typo3-core-icon-state :type: string :Default: 'default' :required: false Sets the state of the icon. All values of the Icons.states enum are allowed, these are: "default" and "disabled". .. _typo3-core-icon-alternativemarkupidentifier_argument: .. confval:: alternativeMarkupIdentifier :name: typo3-core-icon-alternativemarkupidentifier :type: string :required: false Alternative icon identifier. Takes precedence over the identifier if supported by the IconProvider. .. _typo3-core-icon-title_argument: .. confval:: title :name: typo3-core-icon-title :type: string :required: false Title for the icon