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.

Disabled Input and styles

See original GitHub issue

Is your feature request related to a problem? Please Describe. There’s no way to disable the Input component or customize the appearance when it is disabled.

Describe the solution you’d like A disabled prop which is a boolean, along with various props for managing styles when disabled.

Describe alternatives you’ve considered The only alternative right now is doing it yourself managing your own styles.

E.g.

<Input inputStyle={disabled ? styles.disabled : styles.normal}/>

Additional context Similar issue #1715

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
iRoachiecommented, Aug 2, 2019

Merged 💯Will be live in 1.2.0

0reactions
iRoachiecommented, Aug 1, 2019

@jdmg94 Buttons already have it! Should only be checkboxes left.

Read more comments on GitHub >

github_iconTop Results From Across the Web

disabled - CSS: Cascading Style Sheets - MDN Web Docs
The :disabled CSS pseudo-class represents any disabled element. An element is disabled if it can't be activated (selected, clicked on, ...
Read more >
CSS :disabled Selector - W3Schools
The :disabled selector matches every disabled element (mostly used on form elements).
Read more >
Styling a disabled input with css only - html - Stack Overflow
I have sort of a strange situation. I'm trying to style a disabled input button because I have an annoying hover turning the...
Read more >
Pure CSS Disabled Inputs - GeeksforGeeks
In this article, we will see how to disable the input field in Pure CSS. In some cases, when we ask someone to...
Read more >
Style every disabled element with CSS - Tutorialspoint
Style every disabled element with CSS - To style every disabled element, use the CSS :disabled selector. You can try to run the...
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