Promptary
Frontend · Disclosure

Disclosure developer concepts

Learn 27 Disclosure concepts for Frontend development, with definitions, aliases, and ready-to-use AI prompts.

Core disclosure controls

Native details / summary

A browser-native control that reveals supplementary content from a concise summary.

Also known as
Details element, Summary disclosure, Native expander
AI prompt
Create a native HTML details and summary disclosure for supplementary content. Keep summary as the first child, use a clear label, leave it closed by default, preserve keyboard behavior, and style the marker without removing its affordance.

Disclosure button

A button that expands or collapses a related section while exposing its state.

Also known as
Expander button, Toggle details, Reveal control
AI prompt
Build a disclosure button that controls an adjacent content region. Use a real button, synchronize aria-expanded with visibility, connect it with aria-controls, support Enter and Space through native button behavior, and rotate a visible chevron when expanded.

Inline disclosure

A compact reveal that adds a small explanation without leaving the current reading flow.

Also known as
Inline expander, More info reveal, Micro disclosure
AI prompt
Add an inline disclosure after a short sentence to reveal a brief supporting explanation. Use a button rather than a link, provide an adjacent visual indicator, update aria-expanded, and keep the revealed text in the normal document flow.

Expandable card

A summary card that reveals its secondary details without navigating away.

Also known as
Disclosure card, Expandable panel, Collapsible card
AI prompt
Create an expandable card with a concise always-visible summary and a dedicated disclosure button. Keep the card itself non-clickable unless it has one action, expose expanded state programmatically, and reveal the secondary details directly below the summary.

Default-open disclosure

A disclosure initially expanded because its content is likely to be needed by most people.

Also known as
Initially expanded, Open details, Expanded by default
AI prompt
Create a disclosure that is expanded on first render because the content is frequently needed. Set the visible panel and aria-expanded state consistently, retain a clear collapse control, and do not hide critical task information when collapsed.

Exclusive disclosure group

A group where opening one section automatically closes the previously open section.

Also known as
Single-open accordion, Exclusive accordion, One-at-a-time panels
AI prompt
Build a single-open accordion in which expanding one section collapses its siblings. Use heading-contained buttons, unique controlled panels, synchronized aria-expanded values, visible focus styles, and allow the open section to be collapsed unless the product requires one to remain open.

Multi-open disclosure group

Independent disclosure sections that can remain expanded at the same time for comparison.

Also known as
Multi-expand accordion, Independent panels, Non-exclusive accordion
AI prompt
Create a multi-open accordion whose sections expand independently so users can compare content. Give every trigger a real button, its own aria-expanded and aria-controls relationship, a clear heading, and a panel that remains in logical reading order.

Progressive content

Accordion

A vertically stacked set of headings that progressively reveals related sections.

Also known as
Collapsible sections, Expansion panels, Content accordion
AI prompt
Create an accessible accordion for several related content sections. Make the whole heading control selectable, use buttons inside appropriate heading elements, show a consistent expanded indicator, preserve a logical tab order, and ensure content is available if JavaScript fails.

Show all / hide all

A group-level control that expands or collapses every section in a long accordion.

Also known as
Expand all, Collapse all, Accordion bulk control
AI prompt
Add a Show all and Hide all control above a multi-section accordion. Update every panel and trigger state together, change the control label to match the next action, keep individual sections operable, and avoid using it for a short one-section disclosure.

FAQ disclosure

A question heading that reveals a concise answer on demand.

Also known as
FAQ accordion, Question reveal, Expandable answer
AI prompt
Create an FAQ disclosure where each question is a descriptive heading button and its answer follows immediately. Allow answers to open independently, expose state with aria-expanded, support deep reading without unexpected scrolling, and keep essential policy information outside collapsed answers.

Read more

A control that expands deliberately shortened text while keeping the full content in place.

Also known as
Show more text, Expandable excerpt, Text continuation
AI prompt
Implement a Read more control for a long excerpt. Use a button with aria-expanded, reveal the complete text without replacing the page or losing focus, change the label to Show less when open, and avoid truncating information required to understand or complete the task.

Advanced settings

An optional settings section hidden until a user needs specialist controls.

Also known as
Advanced options, Optional settings, Expert controls
AI prompt
Create an Advanced settings disclosure below the primary controls. Keep safe common choices visible, group specialist options under a clearly labelled button, preserve entered values when collapsed, expose expanded state, and never conceal settings that block completion.

Contextual help disclosure

A nearby explanation revealed for users who need extra guidance.

Also known as
Help expander, Field guidance, Learn more disclosure
AI prompt
Add an inline contextual-help disclosure beside a field label. Give the trigger an explicit text label, reveal concise guidance adjacent to the field, connect state with aria-expanded and aria-controls, and keep required instructions permanently visible rather than hidden.

Extended media description

A reveal for a detailed description of a complex image, chart, or illustration.

Also known as
Image description, Long description, Visual description
AI prompt
Provide an extended-description disclosure immediately after a complex image or chart. Keep concise alternative text on the media, label the trigger as View image description, reveal an equivalent detailed explanation in text, and expose expanded state accessibly.

Navigation & hierarchy

Disclosure navigation

A navigation item that expands a group of destinations without behaving like a menu widget.

Also known as
Expandable navigation, Collapsible nav group, Navigation disclosure
AI prompt
Build disclosure navigation with ordinary links inside an expandable list. Use a button for each parent disclosure, update aria-expanded, keep link keyboard behavior native, identify the current page separately, and do not add menu roles to standard site navigation.

Parent link with submenu toggle

A navigable parent link paired with a separate button that expands its child links.

Also known as
Split nav item, Link plus chevron, Submenu disclosure
AI prompt
Create a navigation row with a parent link and a separate adjacent disclosure button for child links. Give the button an accessible label that names the submenu, keep link and toggle hit targets distinct, update aria-expanded, and ensure both controls have visible focus states.

Nested navigation disclosure

A shallow hierarchy where a disclosed navigation group contains another expandable branch.

Also known as
Nested submenu, Hierarchical navigation, Multi-level disclosure
AI prompt
Build shallow nested disclosure navigation for a real information hierarchy. Indent child levels, use one button per expandable branch, maintain independent aria-expanded states, keep all destinations as links, and avoid deep nesting that obscures location or creates excessive tab stops.

Tree node disclosure

An expandable hierarchical node used to reveal child items in a structured tree.

Also known as
Expandable tree node, Branch expander, Tree disclosure
AI prompt
Create an expandable tree node with a separate disclosure affordance and clear selected state. Use a real tree pattern only when hierarchical arrow-key interaction is implemented; otherwise use a nested list of disclosure buttons and links with accurate aria-expanded values.

Mobile menu disclosure

A compact navigation trigger that reveals the site links on small screens.

Also known as
Hamburger disclosure, Responsive menu toggle, Mobile nav expander
AI prompt
Create a mobile navigation disclosure button labelled Menu that expands the primary navigation. Synchronize aria-expanded with visibility, retain focus visibility, allow Escape to close when appropriate, avoid trapping focus in a non-modal region, and restore the desktop layout without stale hidden states.

Collapsible filter group

A filter heading that reveals related choices while summarizing active selections.

Also known as
Filter accordion, Faceted filter disclosure, Expandable filters
AI prompt
Build a collapsible filter group with a heading button, selection count, chevron and checkbox options. Keep active-filter state visible even when collapsed, update aria-expanded, preserve checked values, and provide a separate clear action rather than overloading the disclosure trigger.

Data & task details

Expandable table row

A row-level control that reveals secondary data associated with one record.

Also known as
Row details, Expandable row, Master-detail row
AI prompt
Add an expandable details row to a data table. Put a labelled button in the source row, update aria-expanded, render the detail region in the following row with a cell spanning the table columns, preserve header relationships, and avoid hiding primary comparison data.

Expandable list item

A list item that reveals metadata or actions belonging to that item.

Also known as
List details, Expandable result, Item expander
AI prompt
Create an expandable list item with an always-visible title and summary plus a disclosure button for secondary metadata. Keep list semantics, label the trigger with the item name, reveal content within the same item, and do not make the entire row clickable when it contains other actions.

Activity details

A timeline event that reveals its audit metadata and contextual changes.

Also known as
Audit detail, Timeline expander, Event details
AI prompt
Create a timeline activity disclosure that shows the actor, action and time at rest, then reveals audit metadata and changed values. Use a descriptive button, retain chronological order, expose expanded state, and keep security-relevant events visible without expansion.

Code disclosure

A reveal for optional source, request, response, or implementation details.

Also known as
Show code, Technical details, Source expander
AI prompt
Create a Show code disclosure for optional technical details. Label the language, preserve whitespace in a scrollable pre and code region, expose expanded state, provide a separate Copy action inside the panel, and keep the explanation understandable without opening the code.

Password reveal

A pressed-state control that temporarily discloses the characters in a password field.

Also known as
Show password, Password visibility, Reveal password
AI prompt
Add a Show password button beside a password input. Keep the field value and focus when switching between password and text types, use aria-pressed for the visibility state, change the label to Hide password, and avoid an unlabeled eye icon.

Validation details

An error summary that expands to show the individual issues needing attention.

Also known as
Error details, Validation summary, Issue disclosure
AI prompt
Create an expandable validation summary that states the number of issues and reveals links to each invalid field. Keep a concise error message visible while collapsed, set aria-expanded correctly, move focus only when the user activates a field link, and do not hide field-level errors.

Persistent disclosure state

A disclosure that restores the user’s previous open or closed preference on return.

Also known as
Remembered accordion, Persistent expander, Saved open state
AI prompt
Create a disclosure that remembers its expanded state for the same user and context. Restore state without a visual flash, keep aria-expanded and the panel synchronized, provide a sensible default for new users, scope storage keys safely, and avoid persisting sensitive revealed content.