Skip to content
Shamar

Section

Section is the primary Filament-style card for grouping fields or infolist entries.

import { Section, TextInput } from '@shamar/core'
Section.make('Catalog')
.icon('cube')
.description('Product identity and pricing.')
.columns(2)
.collapsible()
.schema([
TextInput.make('name').required(),
TextInput.make('sku').maxLength(32),
])

Section

MethodDescription
Section.make(title?)Create a section; title becomes the heading.
.icon(name)Optional heading icon slug.
.heading(text)Set / replace the heading.
.description(text)Subtitle under the heading.
.columns(1|2|3|4)Child grid columns (default 2).
.card(bool) / .contained(bool)Card chrome (default true for Section).
.collapsible() / .collapsed()User can collapse; start collapsed.
.dense() / .gap(bool)Spacing controls.
.schema([...])Nested layouts and leaves.

Use Fieldset when you want a lighter legend without a full card. Use Grid when you only need columns.