question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unclear Input action API

See original GitHub issue

Steps

  • browse to the docs site
  • select Input
  • read the action api docs

Expected Result

  • knowledge on how to use an action and/or <Icon /> whilst attaching addition attrs/props to it (e.g. onClick, className, etc)

Actual Result

  • docs on how to use an <Icon /> without attaching any other attrs

Version

0.71.3

Testcase

https://codepen.io/cdaringe/pen/YxZyPR

mentioned in chat, sans any real discussion: https://gitter.im/Semantic-Org/Semantic-UI-React?at=5988b080bc464729746030e4

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
layershiftercommented, Aug 8, 2017

@cdaringe Semantic UI accepts only button as action, that’s why your first Input looks ugly.

The action prop on Input implements a shorthand for Button, so code below is equal:

<Input action={<Button icon='delete' onClick={onIconClick} />} />
<Input action={{ icon: 'delete', onClick: onIconClick }} />

Shorthands should be better documented and issue already exists #561.

0reactions
layershiftercommented, Jul 9, 2018

Please use StackOverflow to usage questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Class InputAction | Input System | 1.0.2 - Unity - Manual
An input action is an abstraction over the source of input(s) it receives. They are most useful for representing input as "logical" concepts ......
Read more >
Struct InputAction.CallbackContext | Input System | 1.0.2
Information provided to action callbacks about what triggered an action. ... Read a Vector2 using the raw memory ReadValue API.
Read more >
Cannot find/understand how to use the New Input System in ...
you should define input action in your input actions and use it to move your object. In your asset folder in unity, right-click...
Read more >
Element: blur event - Web APIs | MDN
<form id="form"> <label>Some text: <input type="text" placeholder="text input" /> </label> <label>Password: <input type="password" ...
Read more >
Input in Unity made easy (complete guide to the new system)
…and confusing. While the new Input System can be more ... How to connect Input Actions to game objects with the Player Input...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found