npm-configurable-text
v1.0.1
Published
--- # npm-configurable-text
Downloads
3
Readme
npm-configurable-text
A configurable text component for React.
Installation
You can install this component using npm:
npm install npm-configurable-text
Usage
import React from 'react';
import PageContent from 'npm-configurable-text';
const MyComponent = () => {
return (
<PageContent
title="Welcome to my page"
content="This is some sample content."
buttons={['Button 1', 'Button 2']}
margin={10}
textAlign="center"
buttonStyles={['btn-primary', 'btn-secondary']}
/>
);
};
export default MyComponent;
Props
title
: The title of the content.titleSize
: The font size of the title.content
: The main content.contentSize
: The font size of the content.fontColor
: The color of the text.buttons
: An array of button labels.margin
: The margin of the container.textAlign
: The text alignment within the container.buttonStyles
: An array of Bootstrap button styles for each button.
License
This project is licensed under the ISC License.