Throttle Builder · Components · Basic

Announcement

The store's announcement bar from Site settings.

The Announcement component in the Components library, with its description and settings
The Announcement component in the Components library, with its description and settings

What it is for

The announcement bar you set up in Site settings. Place it at the top of the header section.

Where you can use it

On any page, template, saved section, header or footer.

In the editor, open the Add tab of the left panel and drag it into a column. Its type is basic.announcement, version 1.

Options

Content tab

OptionKeyAllowed valuesDefault
Visitors can dismiss itdismissibleOn or off.On

Style tab

OptionKeyAllowed valuesDefault
AlignmentalignLeft, center, right or justify.center
ColourcolorA theme colour (token:name) or a hex colour (#rrggbb or #rrggbbaa).Empty
BackgroundbackgroundA theme colour (token:name) or a hex colour (#rrggbb or #rrggbbaa).Empty

Every component also has the common options: Hide, Anchor, Space above, Space below, Entrance animation and Entrance delay.

Responsive behaviour

Every option can be set again for tablet (768 to 1024 px) and phone (767 px and below): switch the device at the top of the editor and change it there. Tablet starts from the desktop value and phone from the tablet value, so you only set what differs.

Each message can be limited to desktop, tablet or phone in Site settings; the others are hidden by CSS on the devices left out.

SEO and accessibility

Messages for everyone are written on the server inside a region labelled "Announcement"; a message with a link holds an a tag. Messages meant only for signed-in or signed-out shoppers appear after the page loads, in space already reserved for the bar. A dismissal is remembered in the shopper's browser.

With an AI agent

An agent adds it with add_widget and changes its options with update_node, using the keys above. See the MCP tool reference.

The widget an agent adds
{
  "type": "basic.announcement",
  "v": 1,
  "props": {}
}
Generated from the code
The option tables on this page are generated from the component definitions in @usethrottle/builder-schema 0.4.2 and @usethrottle/storefront-react 0.4.5.