All Projects → leitdeux → React Hanko

leitdeux / React Hanko

Licence: mit
A Japanese hanko component for React.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Hanko

react-form-base
Base React component for generic forms
Stars: ✭ 18 (+28.57%)
Mutual labels:  react-component, form
Vanilla Autokana
A Vanilla-JavaScript library to complete furigana automatically.
Stars: ✭ 48 (+242.86%)
Mutual labels:  japanese, form
Antd Schema Form
Based on Ant Design, interactive forms can be generated through JSON Schema configuration. - 基于Ant Design,可以通过JSON Schema配置生成可交互的表单。
Stars: ✭ 137 (+878.57%)
Mutual labels:  react-component, form
React Input Range
React component for inputting numeric values within a range (range slider)
Stars: ✭ 680 (+4757.14%)
Mutual labels:  react-component, form
Swiftyform
iOS framework for creating forms
Stars: ✭ 907 (+6378.57%)
Mutual labels:  form
React Final Form
🏁 High performance subscription-based form state management for React
Stars: ✭ 6,781 (+48335.71%)
Mutual labels:  form
React Insta Stories
A React component for Instagram like stories
Stars: ✭ 777 (+5450%)
Mutual labels:  react-component
Kuromoji
Kuromoji is a self-contained and very easy to use Japanese morphological analyzer designed for search
Stars: ✭ 745 (+5221.43%)
Mutual labels:  japanese
Elements Examples
Stripe Elements examples.
Stars: ✭ 874 (+6142.86%)
Mutual labels:  form
React Planner
✏️ A React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
Stars: ✭ 846 (+5942.86%)
Mutual labels:  react-component
Base
React-UI-Kit - frontend library with ReactJS components
Stars: ✭ 18 (+28.57%)
Mutual labels:  react-component
React Toastify
React notification made easy 🚀 !
Stars: ✭ 8,113 (+57850%)
Mutual labels:  react-component
React Visual Diff
React component for rendering the diff of two React elements
Stars: ✭ 22 (+57.14%)
Mutual labels:  react-component
Form Backend Validation
An easy way to validate forms using back end logic
Stars: ✭ 784 (+5500%)
Mutual labels:  form
Verticalstepperform
Vertical Stepper Form Library for Android. It follows Google Material Design guidelines.
Stars: ✭ 868 (+6100%)
Mutual labels:  form
React Lazy Load Image Component
React Component to lazy load images and components using a HOC to track window scroll position.
Stars: ✭ 755 (+5292.86%)
Mutual labels:  react-component
Info
Channel info
Stars: ✭ 17 (+21.43%)
Mutual labels:  japanese
Ui Box
Blazing Fast React UI Primitive
Stars: ✭ 847 (+5950%)
Mutual labels:  react-component
Ui Form Field
ui-form-field based on formik - a simple way to work with Forms in React.
Stars: ✭ 17 (+21.43%)
Mutual labels:  form
Ng Select
A select library for Angular, with single and multiple select functionality
Stars: ✭ 16 (+14.29%)
Mutual labels:  form

react-hanko logo

react-hanko

A UI component to render Japanese hanko. Use it to add flair and realism to forms, digital contracts and signatures. 💮

han·ko

A Japanese stamp made of wood, stone, or horn, engraved with the name of an individual, office, or institution and used instead of a signature in official transactions.

- The Free Dictionary

Demo

react-hanko

Features

  • Japanese and English support
  • Conveniently sets font size and other properties via a provided size prop.
  • Customizable:
    • Text inside a hanko can have either a vertical or horizontal orientation
    • Text can be rotated left or right (e.g. -24 degrees)
    • The color of the text or the outer "ring" may be set separately
    • Adjust the width of the hanko "ring" (i.e. the outer circle)
    • Use your own custom inline styles to override the default CSS styling

Getting Started

Installation

You can install react-hanko from npm.

$ npm install react-hanko

Quick Example

Here is a quick example to get you started.

import React, { Component } from 'react';
import { Hanko } from 'react-hanko';

class MyComponent extends Component {
  render() {
    return (
      <Hanko
        familyName="鈴木"
        size={100}
      />
    );
  }
}

Running the Example Project

Run npm start in the terminal, and access the page at http://localhost:3000 in your browser of choice.

Props

These are the available properties to customize react-hanko.

Important: the size prop is required, as well as text provided either by familyName or children.

Property Type Default Description
children PropTypes.string '' Text used for hanko label, written either in Japanese or English characters.
className PropTypes.string '' CSS class used for custom styling of the hanko ring and text.
color PropTypes.string #DD4827 Color of the hanko "ring" and text label
containerStyle PropTypes.objectOf(PropTypes.string) {} Inline style object used for overriding styles of the parent container div.
familyName PropTypes.string '' Text of the hanko label (can be used instead of children).
orientation PropTypes.string '' Hanko label's text orientation.
ringColor PropTypes.string '' Color of the hanko 'ring'
ringSize PropTypes.number 0 Size of the hanko ring.
rotation PropTypes.number 0 Rotation (transform) of the hanko text.
size PropTypes.number.isRequired undefined Size (height and width are equal) of the hanko itself.
textStyle PropTypes.objectOf(PropTypes.string) {} Custom style object used to override the default styling of the hanko text.

ChangeLog

See CHANGELOG.md

Contribution

Thanks for checking out react-hanko. Bugs, feature requests and comments are more than welcome in the issues.

Before opening a PR:

Run npm test after making changes, provide documentation and please be mindful of the code style.

Thanks!

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].