Skip to content

Instantly share code, notes, and snippets.

@warpech
Created November 29, 2017 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warpech/4b2933b519c0d93aac8a2fe0448b1b3e to your computer and use it in GitHub Desktop.
Save warpech/4b2933b519c0d93aac8a2fe0448b1b3e to your computer and use it in GitHub Desktop.
An initial list of common, general-purpose web UI patterns
  1. Accordion. A list that can have a single item or multiple items expanded to show more detail.
  2. Alphabetic indices. Renders the characters in a culture’s alphabet in standard order (e.g., as a vertical or horizontal strip). If supplied with a set of strings, the UI will disable those characters which are not found as the initial character of any string.
  3. Async operation button. A button whose caption changes to reflect an operation in progress (e.g., changing from “Sign In” to “Signing In...”) until the operation completes.
  4. Auto-complete. A text input field that helps the user quickly enter strings from a known list.
  5. Auto-format. Applies a collection of heuristics for formatting text: adding smart quotes, converts double hyphens to endashes, etc.
  6. Auto-size text box. A text area that expands to contain its text.
  7. Backdrop. Shows a background region of non-interactive elements behind the region’s main contents.
  8. Blog. Shows some or all of the entries in the indicated RSS feed.
  9. Blog headlines. Shows the headlines of some or all of the entries in the indicated RSS feed as links to the full articles.
  10. Breadcrumb bar. Indicates the user’s position in a navigational hierarchy.
  11. Browser specific. Conditionally shows contents based on the browser being used and/or whether the current browser supports a given feature.
  12. Calendar day. Shows a single day in a calendar.
  13. Calendar month navigator. Lets the user select a date, typically in the near future, by navigating through calendar months.
  14. Calendar month. Shows a single month from a calendar as a standard seven-column table, taking care to reflect a given culture’s preference for the first day of the week.
  15. Calendar months. Shows multiple months from a calendar.
  16. Calendar week. Shows a single week from a calendar as seven days in a row, taking care to reflect a given culture’s preference for the first day of the week.
  17. Carousel. Lets user navigate laterally between panels with a sliding transition.
  18. Central column. A region whose main central column is fixed in width, and horizontally centered with respect to the viewport.
  19. Checked list box. A list box showing a check box next to each item; the user can create a multiple selection by checking the boxes.
  20. Close box. A platform-sensitive representation of a button that will close the current dialog or window.
  21. Closeable panel. Shows information (e.g., a warning, or the result of a completed operation) that can be dismissed to remove the panel from the visible page.
  22. Collapsible panel. A region that can be toggled between collapsed and expanded states.
  23. Color wheel. Lets the user select a color in a variety of color spaces.
  24. Combed text box. A text box sporting tick marks or vertical lines to visually indicate how many characters should be entered.
  25. Content grid. A region which provides a sense of visual organization by dividing its width into a number of columns (e.g., 12) which can be variably spanned by content panels.
  26. Content transition. When supplied with new content, transitions from the existing content to the new content using a common animated transition (fade, fade through black, slide, wipe, etc.)
  27. Content with banner(s), such as toolbar (on top) or status bar (on the bottom).
  28. Content with sidebar(s) on the left and/or right side.
  29. Countdown clock. Represents the time (in days/hours/etc.) until a given point in time.
  30. Credit card. Asks the user to supply a credit card and performs initial validation.
  31. Date combo box. Lets the user type a date or choose one from a dropdown calendar.
  32. Date range calendar. Lets the user select a date range, typically in the near future.
  33. Date text box. Lets the user type a date in several culture-specific formats.
  34. Days of week. Shows the names of the seven days of the week using a given culture’s day names in short/abbreviated/full format.
  35. Delimited list. A list of items interspersed with a decorative element (bullet, vertical bar, etc.) for cleaner delineation.
  36. Device specific. Conditionally shows contents based on the type of device being used and/or device capabilities.
  37. Dialog. A popup window, typically modal.
  38. Editable in place. An element that supports its own in situ editing.
  39. Editable text. A piece of static text data which can be clicked to produce a text box that can then be used to edit the data.
  40. Expandable summary. A block of content with a “More” link at bottom; clicking this reveals the remainder of the content.
  41. Fader. Instead of clipping content, it fades out content on the right or bottom edge to suggest additional content exists but could not fit.
  42. File uploader. Allows the user to click or drag-and-drop to supply a single file for upload.
  43. Full screen region. A region supporting a mode in which the region will expand to fill the entire screen.
  44. Full size-able. A region which fills the viewport, independent of the size of the page content.
  45. Infinite list. A list which asynchronously loads additional contents as the user scrolls.
  46. Labeled input. An HTML input control (generally a check box or radio button) with an associated clickable label.
  47. Lateral navigator. A panel with previous and next arrows on either side, allowing the user to navigate laterally through a discrete set of states.
  48. Link list. Uses a platform-sensitive presentation of a set of links (or items that behave like links).
  49. List. Renders each item in a heterogenous set as a vertically stacked set of elements.
  50. List box. A list that supports single selection, including keyboard navigation.
  51. List combo box. A combo box which presents its choices as a dropdown list.
  52. List with detail pane. A list box showing a set of items, paired with a means of showing properties of the selected item. These properties are either a pane (usually to the right) on desktop or tablet devices, or a separate page on mobile devices with smaller screens.
  53. Log. Displays a growing text log showing, for example, the output of an ongoing process.
  54. Markdown. Renders a block of Markdown as rich text.
  55. Masked text. A text box which only accepts specified input characters.
  56. Menu bar. A row of menus.
  57. Menu item. A command in a menu.
  58. Menu separator. A line separating commands in a menu.
  59. Menu. A popup menu, often in a menu bar.
  60. Mobile date/time picker. Platform-sensitive collection of elements which emulate the platform’s native date/time picker.
  61. Modes. Shows exactly one item at a time.
  62. Month and year. Shows the month and year of a given date in a format appropriate for a given culture.
  63. Month name. Shows a given culture’s name for the month of a given date.
  64. Multi list box. A list that supports multiple selection, including keyboard navigation.
  65. Multiple file uploader. Allows the user to click or drag-and-drop to supply multiple files for upload.
  66. Number with units. Facilitates entry of a number with units (e.g., “10 in.”, “5 minutes”, “60 kg”).
  67. Overlay. A transparent or semi-transparent blanket over the entire page which absorbs interactions outside a modal element.
  68. Packed columns. Packs its children into a dynamic number of columns of roughly equal height (e.g., see the Pinterest home page).
  69. Page number navigator. Indicates the number of pages, e.g. of search results, and also allows navigation to a particular page of results.
  70. Palette window. A persistent set of tools adjacent to, or superimposed on, a work surface, providing tools for manipulating the information on the surface.
  71. Panel with overflow. A panel fixed in width or height which allows any items which don't fit to overflow into a dropdown menu.
  72. Password strength assessment. Provides a rough assessment of the strength of a possible password.
  73. Persistent header. A scrolling list in which the header for the group of items currently at the top of the visible list remains visible until the user scrolls the next group to the top. At this point, the new group header pushes the previous group header out of sight.
  74. Persistent panel. A panel whose contents will bump up against the top or bottom of a scrolling parent so as to remain always visible.
  75. Person name. A set of input elements for obtaining all or part of a person’s name.
  76. Phone number. Allows entry of a phone number for a single locale or a range of global locales.
  77. Popout. An item that can expand (e.g., on hover) without affecting the visual position of surrounding items.
  78. Popup button. A button that produces a popup when clicked.
  79. Popup source. An element which invokes a popup.
  80. Popup. An element which temporarily pops up over other things. Can be modal or modeless.
  81. Postal address. Allows entry of a postal address for a single locale or a range of global locales.
  82. Postal code. Allows entry of a postal code for a single locale or a range of global locales.
  83. Process steps. Shows a numbered list of steps in a task, disabling steps which are not yet available.
  84. Progress bar. Indicates the fraction of an operation which has been completed.
  85. Progress indicator. Platform-sensitive representation of an ongoing operation whose expected duration is unknown.
  86. Pull to refresh. A region which the user can pull down to reveal a platform-sensitive “Pull to refresh” and “Loading” representation.
  87. Radio button list. A list box showing a radio button next to each item; an alternative way to represent selection in a single-selection list.
  88. Repeater. Creates a certain number of instances of another element class.
  89. Ribbon. A space-sensitive presentation of a set of commands.
  90. Rich text editor. Supports the basics: bold, italic, insert link, etc.
  91. Rotating panels with dots. Rotates (once or indefinitely) through a sequence of horizontally-arranged pages, usually to add visual interest to a home page.
  92. Search box. A text box with standard decorations (magnifying class, customizable “Search” hint) to suggest a search field.
  93. Sequence navigator. A lateral navigator that lets the user navigate left and right through an ordered sequence of items.
  94. Slider. Accepts a discrete number in a constrained range.
  95. Sliding panels with dots. Sliding panels which add a series of dots to navigate its contents.
  96. Sliding panels. Arranges a set of items on a horizontally sliding strip; only one item can be fully seen at any time.
  97. Spin box. Accepts a discrete number, potentially in a constrained range.
  98. Splitter. A movable line sitting between two panels which can be dragged to change their relative sizes.
  99. Sprite. Shows a single image at a time from a strip or grid of images.
  100. Stacked navigation pages. As the user navigates deeper in an app, a small residual portion of the previous page remains visible (typically on the left); the user can swipe away the top page to navigate back to an earlier point.
  101. Star rating. Lets the user rate something (a restaurant, product, etc.) using the conventional star system.
  102. Tab strip. A set of tab buttons, typically used to navigate among tabbed pages presenting different content, but which can also be used, for example, to apply one of a set of filters to a results list.
  103. Tab. A tabbed page which can be hosted in a set of tabs.
  104. Tabs. A set of pages which can be navigated by a set of tab buttons across the top.
  105. Tag text box. Tokenizes text input into a set of tags, and provides auto-completion against a set of existing tags.
  106. Text box with button. A control with a content area (usually some form of text box) and an associated button (“Go”, “Submit”, etc.).
  107. Text condenser. Switches to a condensed font when necessary to squeeze in more text.
  108. Time combo box. Lets the user type a time or choose one from a dropdown time picker.
  109. Timeline. Positions items on a horizontal time axis.
  110. Toggle button. A button the user can click to toggle its selected state.
  111. ToolTip. A popup that appears when hovering the mouse over another element, providing more detail about that element.
  112. Transient message. A message which briefly appears on a page before automatically disappearing. Typically used to display feedback after an operation has completed (e.g., “Message sent”) without requiring user acknowledgement.
  113. Tree view. Visually renders a hierarchy of items as a tree whose branches can be expanded and collapsed.
  114. Validating text box. Verifies that text box content meets some criteria.
  115. Vote up/down. A pair of buttons to vote something up or down; can reflect the current state of the user’s vote.
  116. Wizard. Steps the user through a task through a small set of pages.

Source: http://miksovsky.blogs.com/flowstate/2013/07/how-many-general-purpose-ui-components.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment