Skip to content

Commit 8fdf516

Browse files
committed
document css custom prop for box padding
1 parent ce1b894 commit 8fdf516

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/uui-box/lib/uui-box.element.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
99
* @slot headline - headline area
1010
* @slot header - headline area
1111
* @slot default - area for the content of the box
12+
* @cssprop --uui-box-default-padding - overwrite the box padding
1213
*
1314
*/
1415
@defineElement('uui-box')

packages/uui-box/lib/uui-box.story.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ export default {
1111

1212
const Template: Story = () => html`
1313
<uui-box headline="Headline">
14-
Some content of this box, appended in the default slot. Notice the padding
15-
of the default slot can be removed by setting
16-
style="--uui-box-default-padding: 0;"
14+
Some content of this box, appended in the default slot.
1715
</uui-box>
1816
`;
1917

0 commit comments

Comments
 (0)