Page Section

Sekcja strony docelowej: ikona, nadtytuł, tytuł jako prawdziwy nagłówek, opis, siatka funkcji z ikonami i linkami oraz media obok lub pod spodem.

Dostępny w
  • Angular: dostępny
  • Vue: dostępny
  • React: dostępny
  • React Native: jeszcze niedostępny

Użycie

Features

Everything a meeting needs

From the first word to the last follow-up, without leaving the app.

Summaries

Every meeting ends with its decisions and follow-ups.

Search

Find what was said, by whom and when.

Private

Your notes stay on your own devices.

Import

ts
import {
  SonePageFeatureComponent,
  SonePageFeaturesComponent,
  SonePageSectionComponent,
  SonePageSectionLinksDirective,
} from "@surface-one/angular/page-section";

Dokumentacja API

SonePageFeatureComponentKomponent

`<sone-page-feature>` — one feature of a page section (Nuxt UI PageFeature): an icon in a tile, the title as a heading (`level`, default 3) and a description; `href` makes the whole feature a link. It is a list item of `sone-page-features`.

Selektor
sone-page-feature
Wejścia
NazwaTyp Domyślnie
titlewymaganestring—
descriptionstring | nullnull
iconShellIcon | nullnull
href

Makes the whole feature a link.

string | nullnull
orientation

`vertical` puts the icon above the copy, `horizontal` beside it.

PageFeatureOrientation"vertical"
level

The title's heading level, 1–6.

HeadingLevel3

SonePageFeaturesComponentKomponent

`<sone-page-features>` — the grid of a section's features: a list of `features` (`{ icon, title, description, href }`) or projected `sone-page-feature`s, as many columns as fit.

Selektor
sone-page-features
Wejścia
NazwaTyp Domyślnie
featuresreadonly PageFeatureItem[][]
orientationPageFeatureOrientation"vertical"
level

The features' heading level, 1–6.

HeadingLevel3

SonePageSectionComponentKomponent

`<sone-page-section>` — a section of a landing page (Nuxt UI PageSection): an icon, a headline, the title as a real heading (`level`, default 2), a description, a grid of `features` (their headings one level deeper) and call-to-action `links`, with the projected content as media or body. `vertical` (the default) stacks and centres the header; `horizontal` puts the copy beside the media once the block is wide enough, `reverse` swaps the sides. It is a `section` named by its title.

Selektor
sone-page-section
Wejścia
NazwaTyp Domyślnie
titlestring | nullnull
headline

A short line above the title.

string | nullnull
descriptionstring | nullnull
icon

A SurfaceOne glyph in a tile above the headline.

ShellIcon | nullnull
links

Calls to action, drawn as buttons (the first `default`, the rest `outline`).

readonly PageLink[][]
features

The features grid under the copy.

readonly PageFeatureItem[][]
orientationPageSectionOrientation"vertical"
reverse

Puts the media first (horizontal).

booleanfalse
level

The title's heading level, 1–6.

HeadingLevel2

SonePageSectionLinksDirectiveDyrektywa

`[sonePageSectionLinks]` — your own actions after the section's links.

Selektor
[sonePageSectionLinks]