Section Header
A flexible header component for sections with title, description, and actions.
Usage
Team Members
Manage your team members and their account permissions here.
1import { SectionHeader } from "aviris-components";23export default function SectionHeaderDemo() {4 return (5 <SectionHeader6 title="Team Members"7 description="Manage your team members and their account permissions here."8 headingLevel="h3"9 />10 );11}With Actions
Team Members
Manage your team members and their account permissions here.
1import { SectionHeader } from "aviris-components";2import { Button } from "@/components/ui/button";3import { Plus } from "lucide-react";45export default function SectionHeaderDemo() {6 return (7 <SectionHeader8 title="Team Members"9 description="Manage your team members and their account permissions here."10 actions={11 <Button>12 <Plus className="mr-2 h-4 w-4" />13 Add Member14 </Button>15 }16 headingLevel="h3"17 />18 );19}Alignment
Left Aligned
Default alignment is left.
Center Aligned
Center aligned content.
Right Aligned
Right aligned content.
1import { SectionHeader } from "aviris-components";23export default function SectionHeaderDemo() {4 return (5 <div className="space-y-8">6 <SectionHeader7 title="Left Aligned"8 description="Default alignment is left."9 align="left"10 headingLevel="h3"11 />12 <SectionHeader13 title="Center Aligned"14 description="Center aligned content."15 align="center"16 headingLevel="h3"17 />18 <SectionHeader19 title="Right Aligned"20 description="Right aligned content."21 align="right"22 headingLevel="h3"23 />24 </div>25 );26}Sizes
Small Header
A small section header.
Default Header
A default section header.
Large Header
A large section header.
1import { SectionHeader } from "aviris-components";23export default function SectionHeaderDemo() {4 return (5 <div className="space-y-8">6 <SectionHeader7 title="Small Header"8 description="A small section header."9 size="sm"10 headingLevel="h3"11 />12 <SectionHeader13 title="Default Header"14 description="A default section header."15 headingLevel="h3"16 />17 <SectionHeader18 title="Large Header"19 description="A large section header."20 size="lg"21 headingLevel="h3"22 />23 </div>24 );25}Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | - | Required. The title text to display. |
| description | string | - | Optional description text to display below the title. |
| actions | React.ReactNode | - | Optional actions to display below the description. |
| size | "sm" | "default" | "lg" | "default" | The size variant of the header. |
| align | "left" | "center" | "right" | "left" | The alignment of the header content. |
| animate | boolean | true | Whether to enable the entrance animation. |
| titleClassName | string | - | Optional additional classes for the title element. |
| descriptionClassName | string | "text-muted-foreground leading-7" | Optional additional classes for the description element. |
| actionsClassName | string | "flex items-center gap-4" | Optional additional classes for the actions container. |