All Projects → Metroxe → React Border Wrapper

Metroxe / React Border Wrapper

Licence: mit
A wrapper for placing elements along div borders.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to React Border Wrapper

React Native demo
react-native实现网易新闻和美团,实现大部分页面。使用最新的react-navigation等组件,同时支持安卓和iOS设备。
Stars: ✭ 237 (+61.22%)
Mutual labels:  react-components, react-component, jsx
React Workshop
⚒ 🚧 This is a workshop for learning how to build React Applications
Stars: ✭ 114 (-22.45%)
Mutual labels:  props, react-components, jsx
react-tabllist
React-based customizable style table or list components that support event and callback functions.
Stars: ✭ 20 (-86.39%)
Mutual labels:  jsx, react-component, props
React Cassette Player
Simple ReactJS HTML5 audio player component built with SVG icons from The Noun Project.
Stars: ✭ 93 (-36.73%)
Mutual labels:  react-components, react-component, html5
react-circle-flags
🚀 A React component with a collection of 300+ minimal circular SVG country flags. Wrapper of HatScripts/circle-flags
Stars: ✭ 29 (-80.27%)
Mutual labels:  react-component, react-components, javascript-library
Preppy
A simple and lightweight tool for preparing the publish of NPM packages.
Stars: ✭ 23 (-84.35%)
Mutual labels:  rollup, npm, jsx
React Structured Data
React Structured Data provides an easy way to add structured data to your React apps
Stars: ✭ 120 (-18.37%)
Mutual labels:  react-components, react-component, jsx
Qr Code With Logo
带头像(logo)的二维码(qrcode)生成工具,无jQuery依赖,自由调整大小
Stars: ✭ 104 (-29.25%)
Mutual labels:  npm, html5
Battery.js
A tiny wrapper for the HTML5 Battery Status API.
Stars: ✭ 111 (-24.49%)
Mutual labels:  browser, html5
Klap
zero config, zero dependency bundler for tiny javascript packages
Stars: ✭ 143 (-2.72%)
Mutual labels:  rollup, npm
Zifi
zifi - Make Stories everywhere using React 😍
Stars: ✭ 87 (-40.82%)
Mutual labels:  react-component, javascript-library
React Lazy
Universal lazy loader components using IntersectionObserver for React
Stars: ✭ 118 (-19.73%)
Mutual labels:  react-components, react-component
React Rainbow
🌈 React Rainbow Components. Build your web application in a snap.
Stars: ✭ 1,662 (+1030.61%)
Mutual labels:  react-components, javascript-library
React 3d Viewer
A 3D model viewer component based on react.js 一个基于react.js的组件化3d模型查看工具
Stars: ✭ 100 (-31.97%)
Mutual labels:  html5, jsx
Nodeppt
This is probably the best web presentation tool so far!
Stars: ✭ 9,589 (+6423.13%)
Mutual labels:  html5, javascript-library
Smart Webcomponents
Web Components & Custom Elements for Professional Web Applications
Stars: ✭ 110 (-25.17%)
Mutual labels:  html5, javascript-library
Dataformsjs
🌟 DataFormsJS 🌟 A minimal JavaScript Framework and standalone React and Web Components for rapid development of high quality websites and single page applications.
Stars: ✭ 95 (-35.37%)
Mutual labels:  react-components, jsx
React Splitters
React splitter component, written in TypeScript.
Stars: ✭ 127 (-13.61%)
Mutual labels:  react-components, react-component
React Ckeditor
CKEditor component for React with plugin and custom event listeners support
Stars: ✭ 124 (-15.65%)
Mutual labels:  npm, react-component
Skia Wasm Port
Port of the Skia drawing library to wasm, for use in javascript (node & browser)
Stars: ✭ 131 (-10.88%)
Mutual labels:  browser, html5

React Border Wrapper Logo

NPM NPM Github Issues

Test in Browser

Example

Installation

npm

npm install react-border-wrapper

yarn

yarn add react-border-wrapper

Usage

Use the border wrapper in the same way you would use a <div>.

import * as React from 'react'
import BorderWrapper from 'react-border-wrapper'

class Example extends React.Component {
  render () {
    return (
      <BorderWrapper>
      	// Content
      </BorderWrapper>
    )
  }
}

Props

Prop Type Description
innerPadding string number Padding around the children on each edge.
borderWidth string number Width of the border.
borderRadius string number Radius of each corner. This radius is added on top of the inner padding. Thus, a large radius will create a large distance between the top and bottom borders.
borderColour string CSS compatible string for the border colour
borderType string CSS compatible LineStyle string to change the border drawing style
topElement rightElement bottomElement leftElement Element JSX Element to be rendered at the specified side. If an element is not specified then all prop values for that side will be ignored.
topPosition rightPosition leftPosition rightPosition number A number between 0 and 1 to indicate a precentage (0% to 100%) of where the component will be placed along the sides. Values greater than 1 or less than 0 will be at 1 and 0 respectively.
topOffset rightOffset leftOffset rightOffset string number Offset the component on the given side by this value. Use this to help center or position each component to your desired location.
topGap rightGap bottomGap leftGap string number Distance between the border and the position of the component to be rendered.

Playground

Use the following link to play around with the props and find a proper style. It is highly encouraged to export the props and either report an issue with them or submit them as a style to be used by other users.

https://metroxe.github.io/react-border-wrapper/

License

MIT © Christopher Powroznik

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].