Use up and down keys to navigate results once you've typed more than two characters. Use the enter key to select a result. Touch device users, explore by touch or with swipe gestures.
Style Icons
Overview
An icon can help explain the function of an element, such as a call to action.
When to use icons
Icons can make scanning a page quicker, as well as making target areas larger and easier to select. They can also help users with accessibility needs.
Always consider if an icon is necessary, and only use icons that are universally understood. An icon that means different things to different people will make your product harder to use.
Our icons are supported by user research and are available from our icon set.
A selection of icons are labelled as suitable for use with web user interfaces, with the Nunjucks code available on the individual icon pages. This guidance details how to use these icons as part of a Design System component.
Use the parameter iconType to set the type of icon. The value will be the name of the “Web UI” icon, which you will need to choose from our icon set.
Icon position
You can set an icon’s position to before or after the text on a button or list.
Use the parameter iconPosition and give it a value of either “before” or ”after”.
Icon size
You can change the size of an icon on a list or panel – from the default size of regular text – to match the size of the text, as detailed in the type scale.
Use the parameter iconSize and give it a value of either: “s”, “m”, “l”, “xl”, “2xl” or “3xl”.