diff --git a/src/components/section/SectionHeader/SectionHeader.stories.mdx b/src/components/section/SectionHeader/SectionHeader.stories.mdx index cdfcc316..b64eb569 100644 --- a/src/components/section/SectionHeader/SectionHeader.stories.mdx +++ b/src/components/section/SectionHeader/SectionHeader.stories.mdx @@ -1,5 +1,6 @@ import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs' import { SectionHeader } from './SectionHeader' +import { Button } from "../../button"; @@ -7,7 +8,7 @@ import { SectionHeader } from './SectionHeader' This component can be used to create a section header swiftly. -It leverages the components [SectionHeaderArea](/docs/components-section-sectionheaderara--docs) and [SectionHeaderTitle](/docs/components-section-sectionheadertitle--docs). +It leverages the components [SectionHeaderArea](/docs/components-section-sectionheaderara--docs), [SectionHeaderRow](/docs/components-section-sectionheaderrow--docs) and [SectionHeaderTitle](/docs/components-section-sectionheadertitle--docs). export const Template = ({ ...args }) => @@ -17,6 +18,24 @@ export const Template = ({ ...args }) => + + Right }}> + {Template.bind({})} + + + + + }}> + {Template.bind({})} + + + + + Right }}> + {Template.bind({})} + + + ### Props - + diff --git a/src/components/section/SectionHeader/SectionHeader.tsx b/src/components/section/SectionHeader/SectionHeader.tsx index 08d363dc..11aef68c 100644 --- a/src/components/section/SectionHeader/SectionHeader.tsx +++ b/src/components/section/SectionHeader/SectionHeader.tsx @@ -1,16 +1,25 @@ import { ReactNode } from 'react' import { SectionHeaderArea } from './SectionHeaderArea' +import { SectionHeaderRow, SectionHeaderRowLayout } from './SectionHeaderRow' import { SectionHeaderTitle } from './SectionHeaderTitle' export type SectionHeaderProps = { title: ReactNode className?: string + rightArea?: ReactNode } -export function SectionHeader({ className, title }: SectionHeaderProps) { +export function SectionHeader({ + className, + title, + rightArea, +}: SectionHeaderProps) { return ( - {title} + + {title} +
{rightArea}
+
) }