Section

Please see the blocks page for more examples, since they are built using sections.

A section with equal columns

On mobile it's a single column, of course. All without having to think about responsiveness. It just works. Have a look at the code, it's down below.

placeholder landscape
---
import Section from 'fulldev-ui/components/Section.astro'
---

<Section
  heading="A section with equal columns"
  text="On mobile it's a single column, of course. All without having to think about responsiveness. It just works. Have a look at the code, it's down below."
  buttons={[
    {
      variant: 'primary',
      href: '/overview/installation',
      text: 'Installation',
      contrast: true,
    },
    { variant: 'secondary', href: '/structure/split', text: 'Component' },
  ]}
  image={'/images/placeholder-landscape.webp'}
/>

Props

PropTypeDefault
position'background' | 'cover' | 'inset' | undefined-
buttonsComponentProps<typeof Button<'a'>>[] | undefined-
buttonComponentProps<typeof Button<'a'>> | undefined-
cardsComponentProps<typeof Card<'a'>>[] | undefined-
badgestring | ComponentProps<typeof Badge<'a'>> | undefined-
imageComponentProps<typeof Image>['src'] | undefined-
ratingnumber | undefined-
pagesCollectionEntry<'pages'>['data'][] | undefined-
recordsCollectionEntry<'records'>['data'][] | undefined-
headingstring | undefined-
titlestring | undefined-
textstring | undefined-
htmlstring | undefined-
descriptionstring | undefined-
labelstring | undefined-
taglinestring | undefined-
liststring[] | undefined-
theme'light' | 'dark' | undefined-
color'base' | 'brand' | undefined-
size'sm' | 'md' | 'lg' | undefined-
align'start' | 'center' | 'end' | undefinedstart
justify'start' | 'center' | 'end' | undefined-
structure'column' | 'split' | 'spread' | 'carousel' | 'grid' | 'masonry' | 'stack' | undefinedcolumn
level1 | 2 | 3 | 4 | 5 | 6 | undefined2
space'auto' | 'none' | undefinedauto
reverse'odd' | 'even' | undefined-
variant'primary' | 'secondary' | 'tertiary' | undefinedsecondary
panelboolean | undefined-
asHTMLTagsection
HTML AttributesPolymorphic<section>-