You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A customizable header component that supports multiple text variants with truncation capabilities. The component is designed to display text content with optional star notation and different typography styles.
Features
Multiple typography variants support (h1-h6, paragraph)
Text truncation with customizable length
Optional star notation (*)
Responsive design with Material-UI integration
Customizable theming support
Mobile-responsive text sizing
Props
Paratext: String - Text content when HeadingText is true
value: String - Text content when HeadingText is false
HeadingText: Boolean - Toggle between paragraph and heading display
Suggestion for new component is rejected: this component does not promote best practices - h1 are coming from the page view and should not be dropped within a component - also this component is using material UI and does not follow best practices. Finally the name of the component is not aligned with the best practices
This component is not promoted into the repo - dropping text into a form is not a best practice - text should be shown in relation to a field exposed in the form - in this case, use helperText - Also you should not use this component for a label or indicate a required field - * does not mean it is required -
Cheader Component
Component Overview
A customizable header component that supports multiple text variants with truncation capabilities. The component is designed to display text content with optional star notation and different typography styles.
Features
Props
Paratext
: String - Text content when HeadingText is truevalue
: String - Text content when HeadingText is falseHeadingText
: Boolean - Toggle between paragraph and heading displayvariant
: String - Typography variant ('h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'paragraph')isStar
: Boolean - Toggle star notation displayTheme Customization
The component includes a comprehensive theming system with:
Usage Example
Technical Requirements
Implementation Notes
Future Enhancements
Dependencies
Attachments
Cheader.zip
The text was updated successfully, but these errors were encountered: