# Page Banner URL: /components/page-banner Source: https://github.com/daangn/seed-design/blob/dev/docs/content/components/page-banner.mdx A high-level message component positioned at the top of the page that communicates overall status or important messages to users. ## Anatomy ![Page Banner Anatomy image. Composed of Container, Prefix Icon, Title, Link Text, Chevron, and Dismiss button.]() Page Banner consists of a Container that wraps message text and can display Prefix Icon, Title, Link Text, Chevron, and Dismiss button as needed. ## Properties ### Interaction ![Page Banner Interaction types - Default, Actionable, Dismissible]() Page Banner can have different Interactions depending on the elements displayed on the right side. ### Variant ![Page Banner Variant and Tone - Neutral, Informative, Positive, Warning, Critical, Magic Tone and Weak, Solid Variant]() Page Banner consists of six Tones: Neutral, Informative, Positive, Warning, Critical, and Magic, and each Tone has two styles: Weak and Solid. Tone=Magic is not used in combination with Variant=Solid. ### Prefix Icon Property ![Page Banner Prefix Icon Property]() You can display the Prefix Icon. Using Fill type icons is recommended. ### Title Property ![Page Banner Title Property]() You can display the Title using the Show Title Property. ### State ![Page Banner State - Pressed state of Actionable Page Banner]() Actionable Page Banner has a Pressed state. ## Guidelines ### Page Banner Position ![Page Banner position example - positioned at the top of page]() Page Banner is positioned at the top of the page and is a high-level message component that communicates overall status or important messages to users. It is always placed at the very top of the page (below the top image if one exists), and only one can exist on a screen. ![Page Banner position example - fixed at the top]() You can keep Page Banner fixed at the top even when scrolling. In this case, interaction guidelines must be clearly provided to developers. **Be careful not to display multiple Page Banners on a single screen.** ### Spacing Between Title and Description ![Example of spacing between Page Banner Title and Description]() Page Banner's Title is an inline element that is placed without taking up a line like text. The space between Title and Description is indicated by two spaces. ### Writing Title and Content ![Example of using 'Not Visible' as a Page Banner title]() Page Banner title should be displayed as short words indicating status like "Under Review," "Not Visible," or "Sanctioned," and should only be used when necessary. The body should be written concisely with only essential content, and should not repeat content mentioned in the title. ### Displaying Status with Page Banner ![Example of displaying various statuses with Page Banner - Neutral Weak, Warning Weak]() ![Example of displaying various statuses with Page Banner - Critical Weak, Critical Strong]() ![Example of displaying various statuses with Page Banner - Informative Weak, Positive Weak]() Page Banner conveys feedback on important status changes or user actions on the page. Choose the appropriate Tone for your situation. | Tone | Usage Examples | | --------------- | -------------------------------------------------------------------------------- | | **Neutral** | Initial state with no special status or unclear status value | | **Informative** | Beta feature guidance, user permission restrictions, information-based messages | | **Positive** | Approved, Published, Save successful, Review passed | | **Warning** | Expiration imminent, Missing submission, Insufficient required information, etc. | | **Critical** | Review rejected, Sanctioned state, Editing disabled, Validation failed | ### Marking Entry Points for Key Features or Services ![Example of using Actionable Page Banner as service entry point]() ![Example of using Actionable Page Banner as key feature entry point]() Actionable Page Banner can be used as an entry point for key features or services. ### Using Dismissible Interaction ![Example of using Dismissible interaction to introduce new features]() Dismissible interaction should only be used for information that needs to be conveyed only once to users and should not be used for warning or error messages. After closing, be careful that the same message is not displayed repeatedly. ### Page Banner vs. Callout Comparison Page Banner and [Callout](/components/callout) components both communicate messages to users, but they differ in purpose, visual weight, position, and message scope, so they should be used clearly and distinctly. | | Callout | Page Banner | | ------------------- | ----------------------------------------------- | --------------------------------------------------------- | | **Position** | Within content flow (middle of body) | Top of page | | **Width** | Content width (limited) | Full width (expands horizontally without gutter) | | **Purpose** | Tips, feature descriptions, caution about risks | Page status, sanctions, feature activation guidance, etc. | | **Message Scope** | Local (limited to relevant feature/content) | Global (entire page) | | **Sticky Property** | None (moves with scroll) | Present (can be fixed at top) | ## Specification ### Page Banner Component spec (JSON): /rootage/components/page-banner.json ### Page Banner Close Button Component spec (JSON): /rootage/components/page-banner-close-button.json