-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(Input): Include an example for passing props to input element (#…
…4153) * Include an example for passing props to input element * move example to Usage section Co-authored-by: Oleksandr Fediashov <[email protected]>
- Loading branch information
1 parent
a080eaf
commit 26362aa
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
docs/src/examples/elements/Input/Usage/InputExampleInputElementProps.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react' | ||
import { Input } from 'semantic-ui-react' | ||
|
||
const InputExampleInputElementProps = () => ( | ||
<Input placeholder='Search...'> | ||
<input data-testid='my-input-1' /> | ||
</Input> | ||
) | ||
|
||
export default InputExampleInputElementProps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters