Skip to content

Commit 49fc08d

Browse files
author
Jason Tame
committed
Add withBasicStyles option
1 parent c4c039a commit 49fc08d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/HtmlCard.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct($component = null)
2424
$this->withMeta([
2525
'center' => false,
2626
'withoutCardStyles' => false,
27+
'withBasicStyles' => false,
2728
'content' => '',
2829
]);
2930
}
@@ -71,4 +72,10 @@ public function withoutCardStyles(bool $withoutStyles = true): static
7172
{
7273
return $this->withMeta(['withoutCardStyles' => $withoutStyles]);
7374
}
75+
76+
/** Whether to add basic styles for HTML content */
77+
public function withBasicStyles(bool $withBasicStyles = true): static
78+
{
79+
return $this->withMeta(['withBasicStyles' => $withBasicStyles]);
80+
}
7481
}

0 commit comments

Comments
 (0)