lorem-ui
v1.0.5
Published
Get lorem ipsum text and create a web site in minutes! Get basic lorem-ipsum themed UI elements
Downloads
3
Maintainers
Readme
lorem-ui
React Verison error has been fixed.
lorem-ui is a basic UI library. You can use this library to get dummy text(lorem ipsum) and many other componnets. Create a web site in minutes! An Example website provided below.
Install
npm i lorem-ui
Document
Components
LoremText
- Use the component to get lorem ipsum text.
- Encapsulation: Yes
<LoremText/> //You will get full paragraph of lorem ipsum text.
<LoremText words='5'/> //You will get 5 words of lorem ipsum text.
<LoremText words='220' font='fancy'/> //You will get 220 words of lorem ipsum with having fancy font-family.
<LoremText>Some Text !</LoremText> // You will get full paragraph of dummy lorem ipsum and the output: 'Some Text!' at the end.
LoremContainer
- Use this component to wrap all other components.
- Encapsulation: Yes
<LoremContainer></LoremContainer>
LoremDiv
- Use the component to get a div with having rounded border.
- Encapsulation: Yes
<LoremDiv>
<LoremText word='40' font='fancy'/>
</LoremDiv>
LoremHeader
- Use the component to get a fancy header.
- If you use center prop it will show header at the center. -Encapsulation: Yes
<LoremHeader center='true'>Lorem Ipsum</LoremHeader>
LoremColumn
- Use the component to adjust the number of columns in a row of text.
- Encapsulation: Yes
<LoremColumn column='1 | 2 | 3 | 4'> // give values 1-4.
<LoremText word='140' font=''/>
</LoremColumn>
LoremButton
- Use the component to get a button.
- If 'type' prop is empty, it works as a default button.
- Encapsulation: Yes
<LoremButton type='default | primary | primary-bold | primary-long | text | link'></LoremButton>
<LoremButton type='primary-long'>Get More İnformation</LoremButton> // example use case
LoremFooter
- Use the component to create a footer div by encapulating other footer components.
- Encapsulation: Yes
<LoremFooter></LoremFooter>
LoremFooterLeft
- Use the components as a child coponnet of the
<LoremFooter>
- This component wraps list elements and shows them at the left side.
- Encapsulation: Yes
<LoremFooterLeft></LoremFooterLeft>
LoremFooterRight
- Use the components as a child coponnet of the
<LoremFooter>
- This component wraps list elements and shows them at the left side.
- Encapsulation: Yes
<LoremFooterRight></LoremFooterRight>
Example WebSite
import React from 'react'
import { ExampleComponent, LoremButton, LoremText, LoremDiv, LoremContainer, LoremColumn, LoremHeader, LoremFooter, LoremFooterLeft, LoremFooterRight } from 'lorem-ui'
import 'lorem-ui/dist/index.css'
const App = () => {
return (
<div>
<LoremContainer>
<LoremHeader center='true'>Lorem Ipsum</LoremHeader>
<hr />
<br /><br />
<LoremColumn column='4'>
<LoremText words='140' />
<br />
<LoremButton type='primary-long'>Get More İnformation</LoremButton>
</LoremColumn>
<br /><br />
<LoremDiv><LoremText words='40' font='fancy' /></LoremDiv>
<br /><br />
<LoremText words='120' />
<br /><br />
<LoremDiv><LoremText words='40' font='fancy' /></LoremDiv>
<br /><br />
<LoremText words='120' />
<LoremFooter>
<LoremFooterLeft>
<li><LoremButton type='text'><h3>Lorem Ipsum</h3></LoremButton></li>
<li><LoremButton type='text'>dolor sit amet</LoremButton></li>
<li><LoremButton type='text'>consectetur adipiscing elit</LoremButton></li>
<li><LoremButton type='text'>sed do eiusmod tempor incididunt</LoremButton></li>
</LoremFooterLeft>
<LoremFooterRight>
<li><LoremButton type='text'><h3>Lorem Ipsum</h3></LoremButton></li>
<li><LoremButton type='text'>dolor sit amet</LoremButton></li>
<li><LoremButton type='text'>consectetur adipiscing elit</LoremButton></li>
<li><LoremButton type='text'>sed do eiusmod tempor incididunt</LoremButton></li>
</LoremFooterRight>
<LoremFooterRight>
<li><LoremButton type='text'><h3>Lorem Ipsum</h3></LoremButton></li>
<li><LoremButton type='text'>dolor sit amet</LoremButton></li>
<li><LoremButton type='text'>consectetur adipiscing elit</LoremButton></li>
<li><LoremButton type='text'>sed do eiusmod tempor incididunt</LoremButton></li>
</LoremFooterRight>
</LoremFooter>
</LoremContainer>
</div>
)
}
export default App
License
MIT © Can-tech