Marketing sectionsFaqSplit

Open in Create
Search
astronomic.dev

FaqSplit

Pro

To answer questions beside a heading that stays in view while the reader scrolls them.

File
FaqSplit.astro
Group
Marketing sections
Kind
Static: no JavaScript
Examples
2
import FaqSplit from "@astronomic/ui-pro/components/FaqSplit.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

Eight questions

From a 48rem section the header takes the start third and the questions the other two; as the questions scroll, the header stays in view. Narrower, it stacks as FaqList and the header scrolls with the page. Without a heading there is no start column: it renders as FaqList.

main.astro

Under a sticky Navbar

The header sticks below the bar, not under it: it reads the same inset the kit gives the page for in-page jumps (--ui-nav-offset, else a height that covers the kit's bars), plus an item gap. Under a sticky header of your own, set --ui-nav-offset on <html> to its height. In a frame of fixed height: scroll inside it.

sticky.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.