Implementing borders style props support
See original GitHub issuehttps://react-figma.now.sh/docs/styling.html
Props:
-
borderColor
-
borderTopColor
-
borderRightColor
-
borderBottomColor
-
borderLeftColor
-
borderWidth
-
borderTopWidth
-
borderRightWidth
-
borderBottomWidth
-
borderLeftWidth
react-figma
already has transformBorderStyleProperties
function.
Can be used Figma API (GeometryMixin):
strokes: ReadonlyArray<Paint>
and Yoga Layout:
setBorder(edge: YogaEdge, borderWidth: number): void;
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Learn To Create Border Style in React Native - eduCBA
Guide to React-Native Border Style. Here we discuss how we can create Border Style in React Native with Syntax and Examples.
Read more >border - CSS: Cascading Style Sheets - MDN Web Docs
The border shorthand CSS property sets an element's border. It sets the values of border-width, border-style, and border-color.
Read more >CSS Borders - W3Schools
The CSS border properties allow you to specify the style, width, and color of an ... The border-style property specifies what kind of...
Read more >css - React Inline Style: How would I refactor this border style?
I'm setting the color through props because it's a dynamic component that can change colors to almost anything. <div className="policy" style={{ ...
Read more >Style Props | Amplify UI for React
These style props are available on Amplify UI primitive components and can be used to modify the corresponding styles. This allows users to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There is a much more suitable place -
src/yoga/applyStyleToYogaNode.ts
. 🙂 You can add something liketo
applyStyleToYogaNode
function.Yes, indeed, I did not notice it. I think, we can just implementing
borderColor
,borderWidth
only.