DocsFQL syntax reference
On this page

Visibility and provider buttons

Choose visibility behavior and configure provider buttons.

Before you begin: Support and editor attributes.

Visibility behavior

Visibility directives are intentionally asymmetric during initial loading. Use f-hide for content that is safe to show first and should disappear only when the expression becomes truthy. Use f-show for content that should stay hidden until Frontbacked has enough data to prove it should be visible, such as dashboard links that depend on $auth.exists.

index.html

When Frontbacked hides an element through f-show or f-hide, it sets hidden, aria-hidden="true", and a managed inline style with display: none !important and opacity: 0 !important. When the element becomes visible again, Frontbacked restores the inline display and opacity values that were present before it hid the element.

Use f-auth-provider on provider buttons:

index.html

Frontbacked reveals the element only when that provider is available for the site. If the provider is turned off, the element stays hidden. If the theme supplies an unsupported provider id, Frontbacked renders a visible setup error so theme developers can fix the value early.

In local development, provider sign-in uses simulated accounts. You can edit those local accounts after creation, including an admin toggle for trying admin-only theme pages and fb-admin access.

Continue with Settings lists reference.