Skip to main content English Español Claro Oscuro Sistema

Page

<gstock-page> | GstockPage

API

Propiedades

Nombre Descripción Reflects Tipo Por defecto
title The title of the page. Reflects string ''
description The description of the page. Reflects string ''
elevated Displays the content area with elevated styling (border, background, and shadow). Only affects the main content slot, leaving the header, breadcrumb, and header slots outside the card. Reflects boolean false
loading Shows a loading spinner in the content area. Reflects boolean false
updateComplete

A read-only promise that resolves when the component has finished updating.

Aprende más sobre atributos y propiedades .

Slots

Nombre Descripción
default The main content of the page.
breadcrumb Used for placing breadcrumb navigation. Typically contains a <gstock-breadcrumb> element.
header-before-content Optional slot positioned between the breadcrumb and the header.
header-start Optional slot positioned at the start of the header (left in LTR, right in RTL).
header-end Optional slot positioned at the end of the header (right in LTR, left in RTL).
content-before-content Optional slot positioned before the main content area, outside the elevated card if enabled.
content-start Optional slot positioned before the main content.
content-end Optional slot positioned after the main content.
content-after-content Optional slot positioned after the main content area, outside the elevated card if enabled.

Aprende más sobre slots .

Propiedades personalizadas

Nombre Descripción Default
--page-padding Controls the padding of the page content area.
--page-gap Controls the gap between page sections (header, content, etc.).
--page-max-width Controls the maximum width of the page content.
--page-header-gap Controls the gap between header elements.

Aprende más sobre propiedades personalizadas .

Partes

Nombre Descripción
base The component’s base wrapper.
header The page header containing title and description.
header-content The wrapper for title and description content.
header-start The header start slot wrapper.
header-end The header end slot wrapper.
title The page title wrapper.
description The page description wrapper.
breadcrumb The breadcrumb navigation wrapper.
header-before-content The wrapper for content positioned between the breadcrumb and the header.
content-before-content The wrapper for content positioned before the main content area.
content The main content area.
content-start The content start slot wrapper.
content-end The content end slot wrapper.
content-after-content The wrapper for content positioned after the main content area.
loading The loading spinner wrapper.

Aprende más sobre partes CSS .

Dependencias

Este componente importa automáticamente las siguientes dependencias.