File tree Expand file tree Collapse file tree 4 files changed +47
-1
lines changed
apps/landing/src/app/(detail)/docs/api/style-props
packages/react/src/types/props Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @devup-ui/react " : patch
3+ ---
4+
5+ Add svg props
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import type { DevupUiPositionProps } from './position'
2222import type { DevupUiScrollbarProps } from './scrollbar'
2323import type { DevupSelectorProps , DevupThemeSelectorProps } from './selector'
2424import type { DevupUiShapeProps } from './shape'
25+ import type { DevupUiSvgProps } from './svg'
2526import type { DevupUiTableProps } from './table'
2627import type { DevupUiTextProps } from './text'
2728import type { DevupUiTransformProps } from './transform'
@@ -58,7 +59,8 @@ export interface DevupCommonProps
5859 DevupUiTransformProps ,
5960 DevupUiTransitionProps ,
6061 DevupUiUiProps ,
61- DevupUiViewTransitionProps { }
62+ DevupUiViewTransitionProps ,
63+ DevupUiSvgProps { }
6264
6365export interface DevupProps
6466 extends DevupCommonProps ,
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments