1 | apeman-react-field
|
2 | ==========
|
3 |
|
4 |
|
5 | This file is generated by ape-tmpl. Do not update manually.
|
6 | --->
|
7 |
|
8 |
|
9 | <a name="badges"></a>
|
10 |
|
11 | [![Build Status][bd_travis_shield_url]][bd_travis_url]
|
12 | [![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
|
13 | [![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
|
14 | [![npm Version][bd_npm_shield_url]][bd_npm_url]
|
15 | [![JS Standard][bd_standard_shield_url]][bd_standard_url]
|
16 |
|
17 | [bd_repo_url]: https://github.com/apeman-react-labo/apeman-react-field
|
18 | [bd_travis_url]: http://travis-ci.org/apeman-react-labo/apeman-react-field
|
19 | [bd_travis_shield_url]: http://img.shields.io/travis/apeman-react-labo/apeman-react-field.svg?style=flat
|
20 | [bd_travis_com_url]: http://travis-ci.com/apeman-react-labo/apeman-react-field
|
21 | [bd_travis_com_shield_url]: https://api.travis-ci.com/apeman-react-labo/apeman-react-field.svg?token=
|
22 | [bd_license_url]: https://github.com/apeman-react-labo/apeman-react-field/blob/master/LICENSE
|
23 | [bd_codeclimate_url]: http://codeclimate.com/github/apeman-react-labo/apeman-react-field
|
24 | [bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/apeman-react-labo/apeman-react-field.svg?style=flat
|
25 | [bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/apeman-react-labo/apeman-react-field.svg?style=flat
|
26 | [bd_gemnasium_url]: https://gemnasium.com/apeman-react-labo/apeman-react-field
|
27 | [bd_gemnasium_shield_url]: https://gemnasium.com/apeman-react-labo/apeman-react-field.svg
|
28 | [bd_npm_url]: http://www.npmjs.org/package/apeman-react-field
|
29 | [bd_npm_shield_url]: http://img.shields.io/npm/v/apeman-react-field.svg?style=flat
|
30 | [bd_standard_url]: http://standardjs.com/
|
31 | [bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | <a name="description"></a>
|
38 |
|
39 | apeman react package for field components.
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | <a name="overview"></a>
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | <a name="sections"></a>
|
54 |
|
55 |
|
56 |
|
57 | <a name="section-doc-guides-01-installation-md"></a>
|
58 | Installation
|
59 | -----
|
60 |
|
61 | ```bash
|
62 | $ npm install apeman-react-field --save
|
63 | ```
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | <a name="section-doc-guides-02-demo-md"></a>
|
71 | Demo
|
72 | -----
|
73 |
|
74 | [Live demo][demo_url] is hosted on GitHub Pages.
|
75 |
|
76 | [![Demo Image](./doc/images/screenshot.png)][demo_url]
|
77 |
|
78 | [demo_url]: http://apeman-react-labo.github.io/apeman-react-field/demo/demo.html
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 | <a name="section-doc-guides-03-usage-md"></a>
|
86 | Usage
|
87 | ---------
|
88 |
|
89 | ```jsx
|
90 | 'use strict'
|
91 |
|
92 | import React from 'react'
|
93 | import {ApField, ApFieldSet, ApFieldLegend, ApFieldLabel, ApFieldValue, ApFieldStyle} from 'apeman-react-field'
|
94 |
|
95 | import {ApText, ApTextStyle} from 'apeman-react-basic'
|
96 | import {ApPassword, ApPasswordStyle} from 'apeman-react-basic'
|
97 |
|
98 | const ExampleComponent = React.createClass({
|
99 | render () {
|
100 | return (
|
101 | <div>
|
102 | <ApFieldStyle />
|
103 | <ApTextStyle />
|
104 | <ApPasswordStyle />
|
105 | <ApFieldSet>
|
106 | <ApFieldLegend>Login Form</ApFieldLegend>
|
107 | <ApField>
|
108 | <ApFieldLabel>Username</ApFieldLabel>
|
109 | <ApFieldValue><ApText /></ApFieldValue>
|
110 | </ApField>
|
111 | <ApField>
|
112 | <ApFieldLabel>Password</ApFieldLabel>
|
113 | <ApFieldValue><ApPassword/></ApFieldValue>
|
114 | </ApField>
|
115 | </ApFieldSet>
|
116 | </div>
|
117 | )
|
118 | }
|
119 | })
|
120 |
|
121 | ```
|
122 |
|
123 |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 |
|
129 | <a name="section-doc-guides-04-components-md"></a>
|
130 | Components
|
131 | -----
|
132 |
|
133 |
|
134 | ### ApFieldLabel
|
135 |
|
136 | **Props**
|
137 |
|
138 | | Name | Type | Default | Description |
|
139 | | ---- | ---- | ------- | ----------- |
|
140 | | htmlFor | string | null | | |
|
141 |
|
142 | ### ApFieldLegend
|
143 |
|
144 | **Props**
|
145 |
|
146 | | Name | Type | Default | Description |
|
147 | | ---- | ---- | ------- | ----------- |
|
148 |
|
149 | ### ApFieldSet
|
150 |
|
151 | **Props**
|
152 |
|
153 | | Name | Type | Default | Description |
|
154 | | ---- | ---- | ------- | ----------- |
|
155 | | plain | bool | false | | |
|
156 |
|
157 | ### ApFieldStyle
|
158 |
|
159 | **Props**
|
160 |
|
161 | | Name | Type | Default | Description |
|
162 | | ---- | ---- | ------- | ----------- |
|
163 | | style | object | {} | | |
|
164 |
|
165 | ### ApFieldValue
|
166 |
|
167 | **Props**
|
168 |
|
169 | | Name | Type | Default | Description |
|
170 | | ---- | ---- | ------- | ----------- |
|
171 |
|
172 | ### ApField
|
173 |
|
174 | **Props**
|
175 |
|
176 | | Name | Type | Default | Description |
|
177 | | ---- | ---- | ------- | ----------- |
|
178 | | center | bool | false | | |
|
179 |
|
180 |
|
181 |
|
182 |
|
183 |
|
184 |
|
185 |
|
186 |
|
187 |
|
188 | <a name="license"></a>
|
189 |
|
190 | License
|
191 | -------
|
192 | This software is released under the [MIT License](https://github.com/apeman-react-labo/apeman-react-field/blob/master/LICENSE).
|
193 |
|
194 |
|
195 |
|
196 |
|
197 |
|
198 | <a name="links"></a>
|
199 |
|
200 | Links
|
201 | ------
|
202 |
|
203 | + [apeman][apeman_url]
|
204 | + [apeman-react-labo][apeman_react_labo_url]
|
205 | + [React][react_url]
|
206 |
|
207 | [apeman_url]: https://github.com/apeman-labo/apeman
|
208 | [apeman_react_labo_url]: https://github.com/apeman-react-labo
|
209 | [react_url]: https://facebook.github.io/react/
|
210 |
|
211 |
|