Comments (4)
Yes this is a needed feature.
We need to extend the api for styled to accept an innerRef option.
from emotion.
I did find that you can wrap it in a Component class that works around this:
const Input = styled('input')`font-size: 16px`
class InputWrapper extends React.Component {
render () { return <Input {...this.props} />; }
focus () { ReactDOM.findDOMNode(this).focus(); }
}
from emotion.
I tried my hand at it: #43
from emotion.
Closed in #43
from emotion.
Related Issues (20)
- Styled component that customizes third party library primereact is not working
- Proper CSS for client-only code in SSR mode?
- Runtime error with quoted content + !important
- Remove defaultProps copy HOT 14
- The `css` prop is not attached to a type of props if it is a disjoint union type on `className` field.
- React 19 Types Support HOT 5
- (React 19) Failing `npm i` without --legacy-peer-deps flag
- Injected styles tags HOT 1
- Browser ESM build contains references to `process` which is undefined in browser HOT 1
- @emotion/babel-plugin 11.11.x causes error: "Unexpected falsy value: undefined"
- SSR Final Build Output is including spaces when using css keyword HOT 2
- document is not defined HOT 7
- replace `html-tokenize` with other alternative, and upgrade `multipipe` to 4.x of `@emotion/server` HOT 1
- labelFormat with a space HOT 7
- Emotion.sh domain expired HOT 4
- React 19 styled() override ref of host HOT 2
- styled_default is not a function HOT 1
- @emotion/eslint-plugin should support eslint 9
- Embedding the result of the `css` function in a `styled` definition. HOT 1
- Development dependency included as project dependency HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emotion.