Comments (3)
This is actually a integration error that's not super apperent. I think it's just missing the fela
context.
from cf-ui.
I think this is very surprising to me as well. I think we are moving towards providing both unstyled and styled components. cf-component-label has taken up this approach recently, but in reality, unstyled components are still styled, they are just "unthemed", and should be called as such.
A related issue is, I think we should also provide completely unstyled components. I'll file a ticket for that later to lay out the reason.
In short, I think you should be able to just import a real unstyled component and gets no error.
from cf-ui.
This is actually a integration error that's not super apperent. I think it's just missing the fela context.
Not a bug. It's missing the base theme. You would have to add <ThemeProvider>
and pass down cf-style-const/variables
to make your example working (also you missed required type
prop for the label). Or just can just use cf-style-provider/<StyleProvider>
that does all that.
from cf-ui.
Related Issues (20)
- Migrate `cf-component-progress` to fela.
- Migrate `cf-component-list` to fela. HOT 1
- CHANGELOG for components? HOT 5
- Fixed HEX codes in `cf-style-const` HOT 15
- Fix snapshot tests to not to generate new class name hashes
- Performance metrics of smart CSS in JS HOT 4
- [Question] Query regarding the approach taken for styleguide HOT 4
- Rename cf-style-container HOT 2
- Convert cf-component-form back to React component classes HOT 1
- Icon sizes are wrong in cf-component-icon HOT 5
- Migrate `cf-component-link` to fela. HOT 1
- Migrate `cf-component-icon` to fela. HOT 2
- Missing cf-component-viewport and flex HOT 4
- Fix invalid propType error on input HOT 1
- Enforce commit messages in CI HOT 1
- Update README for all Fela components HOT 1
- Fix drop down top arrow HOT 1
- Import strategy in your main applications HOT 3
- Will this repository become updated again? HOT 1
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 cf-ui.