import "hono/jsx" import type { FC, PropsWithChildren, JSX } from "hono/jsx" import { VStack } from "./stack" import type { TailwindSize } from "./types" import { CodeExamples } from "./code" type SectionProps = JSX.IntrinsicElements["div"] & PropsWithChildren & { gap?: TailwindSize maxWidth?: string } export const Section: FC = (props) => { const { children, gap = 8, maxWidth, class: className, style, id, ref, ...rest } = props return ( {children} ) } export const Test = () => { return (
{/* API Usage Examples */}
...', '
...
', '
...
', '
...
', ]} />

Default Section

This is a section with default gap (8)

It has padding and vertical spacing between children

Compact Section

This section has a smaller gap (4)

Items are closer together

Spacious Section

This section has a larger gap (12)

Items have more breathing room

Constrained Width Section

This section has a max width of 600px and a gray background

Good for centering content on wide screens

) }