This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree 3 files changed +35
-1
lines changed
3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 28
28
<Box bg =" red.200" border-left =" 4px" my =" 5" rounded =" md" shadow =" md" p =" 3" color =" red.800" >
29
29
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Debitis incidunt
30
30
</Box >
31
+ <Anchor bg =" indigo.200" p =" 3" bb =" 4px" rounded =" sm" >
32
+ Basic Link
33
+ </Anchor >
31
34
</theme-provider >
32
35
</template >
33
36
@@ -38,6 +41,8 @@ import Box from './components/Box'
38
41
import theme from ' ./lib/theme'
39
42
import { useIncrement } from ' ./use-increment'
40
43
44
+ const Anchor = Box .withComponent (' a' )
45
+
41
46
export default {
42
47
setup () {
43
48
const { state , increment } = useIncrement ()
@@ -52,7 +57,8 @@ export default {
52
57
components: {
53
58
Button,
54
59
ThemeProvider,
55
- Box
60
+ Box,
61
+ Anchor
56
62
}
57
63
}
58
64
</script >
Original file line number Diff line number Diff line change @@ -93,6 +93,26 @@ export const config = {
93
93
property : 'boxShadow' ,
94
94
scale : 'shadows'
95
95
} ,
96
+ b : {
97
+ property : 'border' ,
98
+ scale : 'borders'
99
+ } ,
100
+ bl : {
101
+ property : 'border-left' ,
102
+ scale : 'borders'
103
+ } ,
104
+ bt : {
105
+ property : 'border-top' ,
106
+ scale : 'borders'
107
+ } ,
108
+ br : {
109
+ property : 'border-right' ,
110
+ scale : 'borders'
111
+ } ,
112
+ bb : {
113
+ property : 'border-bottom' ,
114
+ scale : 'borders'
115
+ } ,
96
116
textDecoration : { property : 'textDecoration' } ,
97
117
overflowX : true ,
98
118
overflowY : true ,
Original file line number Diff line number Diff line change @@ -68,8 +68,16 @@ const allProps = {
68
68
roundedTopLeft : [ String , Array ] ,
69
69
roundedBottomRight : [ String , Array ] ,
70
70
roundedBottomLeft : [ String , Array ] ,
71
+ b : [ String , Array ] ,
72
+ br : [ String , Array ] ,
73
+ bb : [ String , Array ] ,
74
+ bl : [ String , Array ] ,
75
+ bt : [ String , Array ] ,
71
76
border : [ String , Array ] ,
72
77
borderLeft : [ String , Array ] ,
78
+ borderRight : [ String , Array ] ,
79
+ borderTop : [ String , Array ] ,
80
+ borderBottom : [ String , Array ] ,
73
81
shadow : [ Number , String , Array ] ,
74
82
backgroundColor : String ,
75
83
pos : [ String , Array ] ,
You can’t perform that action at this time.
0 commit comments