Skip to content

Commit

Permalink
feat: add breakAfter & breakBefore & breakInside
Browse files Browse the repository at this point in the history
  • Loading branch information
illionillion committed Dec 14, 2023
1 parent 467b108 commit 2ab14b0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tender-lemons-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@yamada-ui/core": patch
---

add `breakAfter` & `breakBefore` & `breakInside`.
15 changes: 15 additions & 0 deletions packages/core/src/styles/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export const layout: Configs = {
objectPosition: true,
visibility: true,
isolation: true,
breakAfter: true,
breakBefore: true,
breakInside: true,
}

Object.assign(layout, {
Expand Down Expand Up @@ -205,4 +208,16 @@ export type LayoutProps = {
* The CSS `aspect-ratio` property.
*/
aspectRatio?: Token<CSS.Property.AspectRatio>
/**
* The CSS `break-after` property.
*/
breakAfter?: Token<CSS.Property.BreakAfter>
/**
* The CSS `break-before` property.
*/
breakBefore?: Token<CSS.Property.BreakBefore>
/**
* The CSS `break-inside` property.
*/
breakInside?: Token<CSS.Property.BreakInside>
}

0 comments on commit 2ab14b0

Please sign in to comment.