Socket
Socket
Sign inDemoInstall

azir-hr

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    azir-hr

An advance HR component that should render nicely on any platform. Supports a great level of customization.


Version published
Weekly downloads
4
Maintainers
1
Install size
21.2 kB
Created
Weekly downloads
 

Readme

Source

Azir Framwork : https://azir.io/docs

Hr

Hr/Divider are visual separators of content. Use Hr when you want to make a distinction between sections of content.

Installation

to install the latest version of azir-hr you only need to run:

npm install azir-hr  --save

or

yarn add azir-hr

Examples

Basic :
import Hr from "azir-hr";
---
<Hr />
Basic
Hr with Text :
import Hr from "azir-hr";
---
<Hr width={300} style={ {backgroundColor:"#eee"} }> Azir </Hr>
Basic
Hr Text style :
import Hr from "azir-hr";
---
<Hr  fontSize={30} textColor="#ff9900" textStyle={ {textDecorationLine:"underline"} } color="#aaa" textPadding="10%">
Azir
</Hr>
Basic
Hr Custom content :
import Hr from "azir-hr";
import { BrandIcons } from "azir-icon";
---
<Hr padding={0} color="success" borderWidth={2} >
  <Icon icon={BrandIcons.react} color="error" size={45} style={ {paddingLeft:10,paddingRight:10} } ></Icon>
</Hr>
Basic

Props


Reference

width

set the whole component width.

TypeRequiredDefault
NumberNoFill the container width

color

color of the hr line

TypeRequiredDefault
azir-colorNotheme

borderWidth

set the Hr Border thickness .

TypeRequiredDefault
NumberNoAzirTheme.SIZES.HR_WIDTH

borderStyle

override hr style,since we are using border to render children then you can use all react native border style options

TypeRequired
styleNo

textColor

color of the hr text

TypeRequiredDefault
azir-colorNotheme

fontSize

set Hr text font size.

TypeRequiredDefault
NumberNoAzirTheme.SIZES.FONT

textStyle

override text style,since we are using text to render children then you can use all react native text props

TypeRequired
styleNo

padding

set Hr Left and right padding.

TypeRequiredDefault
NumberNoAzirTheme.SIZES.HR_PADDING

textPadding

set Hr Text Left and right padding.

TypeRequiredDefault
NumberNoAzirTheme.SIZES.HR_TEXT_PADDING

style

override main container style.

TypeRequired
styleNo

Keywords

FAQs

Last updated on 17 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc