Alfred UI Components

A collection of components to create a custom user interface.

Alfred UI has the following components, all of which extend native macOS AppKit components:

Type Summary
view A container for components
label A static, read-only text label for short strings of text
button A standard control for initiating actions within the UI
checkbox A component for options selection, such as an on/off state for a setting
picker Select an item from a popup list of items
textfield An editable text input field
passwordfield A field that obscures typed characters
textarea Display static or editable text content
markdownarea A plain-text input box where text is formatted using Markdown syntax
progress Convey an ongoing task until task completion
imageview Display an image within the UI
dataview Render structured data and data-driven user interfaces
webkitview Display interactive web content within a native Alfred window
template A special pseudo-component to access Templates

Shared Properties

Components also have an additional set of shared properties.

Constraints

Each component can define a set of optional constraints to further explain how they are positioned within the layout. These include generic constraints e.g. insets and stretch, or constraints such as region for a Border layout.