腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(3359)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
如何使用React/
Styled-components
继承样式
me</h1>import styled from '
styled-components
浏览 41
修改于2020-12-01
得票数 0
1
回答
使用
styled-components
- React传递道具到关键帧
我不能将'inicial‘和'final’作为道具传递给关键帧。你能帮帮我吗? const sliderzada = keyframes` transform: translate(${0}px) //i need 'inicial' here to { }animation: ${ sliderzada} 1.2s ease-in-out; `;
浏览 13
提问于2021-08-12
得票数 0
1
回答
nextjs + react-native-web +
styled-components
: warnOnce
当我尝试使用带有react-native-web和
styled-components
的NextJS时,我总是碰壁。 这个问题似乎与样式化组件中"react-native“的不正确别名有关。我已经设置好重现这个问题 --- Next.jspages/problem.js - FAILS (has
styled-components
/native) pages/Home.js - WORKS pages/Home.js - WORK
浏览 11
提问于2019-09-06
得票数 4
回答已采纳
1
回答
styled-components
- "as“多态道具的可接受类型是什么?
文档似乎没有说明什么类型可以传递给"as“多态属性。我知道字符串可以传入,但它能接受其他任何东西吗?
浏览 0
提问于2020-02-18
得票数 0
1
回答
在Gatsby和
Styled-Components
中使用Google Web字体
代码如下: const GlobalStyle = createGlobalStyle`
浏览 5
修改于2020-11-14
得票数 1
1
回答
尝试导入错误:'createGlobalStyle‘不是从'
styled-components
’导出的
/src/theme/globalStyles.js Attempted import error: 'createGlobalStyle' is not exported from '
styled-components
浏览 42
提问于2021-05-31
得票数 3
回答已采纳
2
回答
Material-UI组件的
styled-components
typescript错误
properties的StyledComponent会出现类型错误import styled from '
styled-components
浏览 1
提问于2019-02-04
得票数 8
1
回答
如何使用
styled-components
和React高效地为组件添加变体
我想创建一个使用
styled-components
包的按钮组件,可以在应用程序中重新使用在略有不同的大小,颜色和悬停行为。按钮可能会出现在单独的帖子中,在导航栏中,表单等等。现在看起来是这样的: import styled from '
styled-components
'; const Button
浏览 9
修改于2020-11-11
得票数 1
1
回答
如何在react
styled-components
中设置先前兄弟的样式?
我有这样的react组件: const StyledMenu = () => { const steps = ['template', 'audience', 'demography', 'action']; const index = steps.indexOf(curr
浏览 12
提问于2021-08-31
得票数 0
回答已采纳
1
回答
使用typescript和
styled-components
在React应用中使用自定义字体
我有一个来自create- React -app的react应用程序,我正在使用typescript和
styled-components
我有一台globalStyles import {createGlobalStyle} from '
styled-components
'; @font-face {// import style
浏览 17
提问于2020-07-24
得票数 0
1
回答
如何使用
styled-components
向Material-UI组件传递属性
我想使用样式组件设置MUI按钮的样式。我想将variant='outlined'作为一个道具传递给组件。这是我正在尝试的: variant: 'outlined',然后抛出这个错误:
浏览 17
提问于2021-02-17
得票数 3
2
回答
React
styled-components
-类型“StyledComponent<”label“,any,{},never>”不能分配给类型“never”
我正在尝试使用带有typescript和BEM结构的样式组件 所以我有一个简单的例子,比如 //index.tsx import styled from '
styled-components
' padding: 10px; export default Card //Header.tsx import styled from '
styled-components
浏览 25
修改于2020-04-16
得票数 2
回答已采纳
1
回答
如何自定义基于属性的Material-UI和
styled-components
样式
我使用Material-UI和
styled-components
。我遇到过这样一种情况,我想用基于传递的属性的样式组件来覆盖Material-UI组件的样式。
浏览 49
提问于2019-09-15
得票数 5
1
回答
使用react-native和
styled-components
如何更改子道具?
我需要更改TouchableHighlight样式组件中的<Text/>的颜色。已尝试: const Button = styled.TouchableHighlight` justify-content: center; color: orange;`; 没有用..。另外,这个Text来自react-native,而不是一个样式化组件。
浏览 19
提问于2020-11-26
得票数 0
1
回答
在React Native中使用
styled-components
捕获可印刷印刷机
import React from 'react';import styled from '
styled-components
import React from 'react';import styled from '
styled-components<
浏览 6
提问于2020-10-15
得票数 4
1
回答
使用React和
styled-components
的Laravel中的Const定义冲突
/BlogCard'; let BlogCard = styled.div`
浏览 22
修改于2020-12-08
得票数 0
1
回答
react-native-testing-library和
styled-components
无法访问属性
我有一个定义如下的样式组件: height: 46px; display: flex; justify-content: center; height: 46px; background: ${EAppColors.BLACK}; opacity: ${props
浏览 0
修改于2021-02-05
得票数 3
1
回答
将不同的className赋予MenuProps和Parent Select Componens with
styled-components
我正在尝试自定义一个带有样式组件的MUI TextField精选组件。const StyledSelect = styled(({ className, ...props }) => { <TextField {...props} SelectProps={{
浏览 12
修改于2019-12-04
得票数 1
回答已采纳
1
回答
使用React Native上的
styled-components
设置多种样式道具的样式
我在React web上使用
Styled-components
已经有一段时间了,但最近我开始开发一个React Native应用程序,我决定在其中使用
styled-components
。
浏览 44
提问于2019-02-21
得票数 3
1
回答
React
Styled-components
TypeScript使用基础样式上的属性扩展样式时出现TS2769错误
基本文件_Modal.ts import styled from '
styled-components
/macro' 'background-color':props['min-width'] : '200px'} export default _modal 我正在尝试将样式扩展到registerModal.ts import styled from '
styled-components
浏览 86
修改于2021-03-21
得票数 1
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券