Fulldev UI

Docs Components Blocks Showcase

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.

---
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={{ src: '/images/placeholder-landscape.webp' }}
/>

Props

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