Adding Box rendering component

This commit is contained in:
Jeff Avallone
2019-01-27 11:11:22 -05:00
parent a118519c3a
commit fe714f2363
5 changed files with 148 additions and 7 deletions
+11 -3
View File
@@ -6,12 +6,20 @@ const parse = expr => {
type: 'SVG',
children: [
{
type: 'Text',
type: 'Box',
props: {
quoted: true
theme: 'literal'
},
children: [
`JS => ${ expr }`
{
type: 'Text',
props: {
quoted: true
},
children: [
`JS => ${ expr }`
]
}
]
}
]
+11 -3
View File
@@ -6,12 +6,20 @@ const parse = expr => {
type: 'SVG',
children: [
{
type: 'Text',
type: 'Box',
props: {
quoted: true
theme: 'literal'
},
children: [
`PCRE => ${ expr }`
{
type: 'Text',
props: {
quoted: true
},
children: [
`PCRE => ${ expr }`
]
}
]
}
]