Skip to content

Commit

Permalink
style(README.md): optimized bigbox example (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew15-5 authored Jan 13, 2025
1 parent c40c4c1 commit ffb6c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pkgbase="${XDG_DATA_HOME:-$HOME/.local/share}/typst/packages/local/elembic" && m
#let bigbox = e.element.declare(
"bigbox",
prefix: "@preview/my-package,v1",
display: it => block([#it.body], fill: it.fill, stroke: it.stroke, inset: 5pt),
display: it => block(fill: it.fill, stroke: it.stroke, inset: 5pt, it.body),
fields: (
field("body", types.option(content), doc: "Box contents", required: true),
field("fill", types.option(types.paint), doc: "Box fill"),
Expand Down

0 comments on commit ffb6c8b

Please sign in to comment.