import type { Meta, StoryObj } from '@storybook/react'; import { PageHeader, PageHeaderHeading, PageHeaderDescription } from './page-header'; import { Plus, Download, Mail } from 'lucide-react'; import { Button } from '../button'; import React from 'react'; const meta: Meta = { title: 'UI/PageHeader', component: PageHeader, render: args => , parameters: { layout: 'padded', }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { title: 'User Management', subtitle: 'View and manage team member permissions.', }, }; export const WithBackButton: Story = { args: { title: 'Edit Profile', subtitle: 'Update your personal information and preferences.', backHref: '/users', }, }; export const WithActions: Story = { args: { title: 'Sales Report', subtitle: 'Detailed analysis of commercial performance for the last quarter.', actions: ( <> ), }, }; export const Compact: Story = { args: { title: 'Settings', onBack: () => alert('Going back...'), actions: , }, }; export const Typography: Story = { render: () => (
Demo Page This is an example description using the PageHeaderDescription component, maintaining typographic consistency across the entire system.
), };