@pagedotapp/page-contact-form-section
v0.0.0-alpha.9
Published
PageContactFormSection - A reusable React component
Readme
PageContactFormSection
A reusable contactformsection component for React applications.
Installation
npm install @pagedotapp/page-contact-form-sectionUsage
import { PageContactFormSection } from "@pagedotapp/page-contact-form-section"
function App() {
return (
<PageContactFormSection variant="primary" size="medium">
PageContactFormSection Content
</PageContactFormSection>
)
}Props
| Prop | Type | Default | Description |
| ----------- | --------------------------------------- | ----------- | ------------------------- |
| children | React.ReactNode | - | Component children |
| className | string | '' | Additional CSS class name |
| variant | 'default' \| 'primary' \| 'secondary' | 'default' | Component variant |
| size | 'small' \| 'medium' \| 'large' | 'medium' | Component size |
| disabled | boolean | false | Disabled state |
Examples
Variants
<PageContactFormSection variant="default">Default</PageContactFormSection>
<PageContactFormSection variant="primary">Primary</PageContactFormSection>
<PageContactFormSection variant="secondary">Secondary</PageContactFormSection>Sizes
<PageContactFormSection size="small">Small</PageContactFormSection>
<PageContactFormSection size="medium">Medium</PageContactFormSection>
<PageContactFormSection size="large">Large</PageContactFormSection>States
<PageContactFormSection disabled>Disabled</PageContactFormSection>Styling
The component uses CSS modules for styling. You can override styles by passing a custom className or by targeting the component's CSS classes in your global styles.
Development
To run the component in development mode:
npm run storybookTo run tests:
npm run testTo lint the component:
npm run lint