Skip to content

Commit 861c3a4

Browse files
authored
Merge pull request #65 from dev-five-git/add-svg
Add svg props
2 parents 7b11acc + ea622ed commit 861c3a4

File tree

4 files changed

+47
-1
lines changed

4 files changed

+47
-1
lines changed

.changeset/shiny-spoons-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@devup-ui/react": patch
3+
---
4+
5+
Add svg props

apps/landing/src/app/(detail)/docs/api/style-props/page.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,3 +1625,32 @@
16251625
</tr>
16261626
</tbody>
16271627
</table>
1628+
1629+
## Svg
1630+
1631+
<table>
1632+
<thead>
1633+
<tr>
1634+
<th>Props</th>
1635+
<th>Style Property</th>
1636+
</tr>
1637+
</thead>
1638+
<tbody>
1639+
<tr>
1640+
<td><code>fill</code></td>
1641+
<td><code>fill</code></td>
1642+
</tr>
1643+
<tr>
1644+
<td><code>stroke</code></td>
1645+
<td><code>stroke</code></td>
1646+
</tr>
1647+
<tr>
1648+
<td><code>strokeWidth</code></td>
1649+
<td><code>stroke-width</code></td>
1650+
</tr>
1651+
<tr>
1652+
<td><code>strokeOpacity</code></td>
1653+
<td><code>stroke-opacity</code></td>
1654+
</tr>
1655+
</tbody>
1656+
</table>

packages/react/src/types/props/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import type { DevupUiPositionProps } from './position'
2222
import type { DevupUiScrollbarProps } from './scrollbar'
2323
import type { DevupSelectorProps, DevupThemeSelectorProps } from './selector'
2424
import type { DevupUiShapeProps } from './shape'
25+
import type { DevupUiSvgProps } from './svg'
2526
import type { DevupUiTableProps } from './table'
2627
import type { DevupUiTextProps } from './text'
2728
import type { DevupUiTransformProps } from './transform'
@@ -58,7 +59,8 @@ export interface DevupCommonProps
5859
DevupUiTransformProps,
5960
DevupUiTransitionProps,
6061
DevupUiUiProps,
61-
DevupUiViewTransitionProps {}
62+
DevupUiViewTransitionProps,
63+
DevupUiSvgProps {}
6264

6365
export interface DevupProps
6466
extends DevupCommonProps,
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { Property } from 'csstype'
2+
3+
import type { ResponsiveValue } from '../responsive-value'
4+
5+
export interface DevupUiSvgProps {
6+
fill?: ResponsiveValue<Property.Fill>
7+
stroke?: ResponsiveValue<Property.Stroke>
8+
strokeWidth?: ResponsiveValue<Property.StrokeWidth>
9+
strokeOpacity?: ResponsiveValue<Property.StrokeOpacity>
10+
}

0 commit comments

Comments
 (0)