Skip to content

Commit 28157f6

Browse files
committed
doc(react-login-page): Update README.md
1 parent ff0e39c commit 28157f6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ export default Demo;
111111
### `Login.Block`
112112

113113
```jsx
114+
import Login, { Block } from 'react-login-page';
115+
114116
<Login.Block name="title">Login</Login.Block>
117+
<Block name="title">Login</Block>
115118
```
116119

117120
```jsx
@@ -135,7 +138,10 @@ export declare const Block: {
135138
### `Login.Input`
136139

137140
```jsx
141+
import Login, { Input } from 'react-login-page';
142+
138143
<Login.Input type="password" placeholder="Password" />
144+
<Input type="password" placeholder="Password" />
139145
```
140146

141147
```tsx
@@ -155,7 +161,10 @@ export declare const Input: FC<PropsWithChildren<InputProps>>;
155161
### `Login.Button`
156162

157163
```jsx
164+
import Login, { Button } from 'react-login-page';
165+
158166
<Login.Button name="submit" type="submit" />
167+
<Button name="submit" type="submit" />
159168
```
160169

161170
```jsx

0 commit comments

Comments
 (0)