Skip to content

Commit

Permalink
Undeprecated necessary props
Browse files Browse the repository at this point in the history
  • Loading branch information
js-goupil committed Dec 20, 2024
1 parent 126308a commit ad0ebc5
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type DeprecatedStackDirection = 'vertical' | 'horizontal';
export interface StackProps extends PaddingProps, SizingProps, GapProps {
/**
* Sets how the Stack's children are placed within the Stack.
* 'vertical' and 'horizontal' are deprecated. Using these values will use the Stack implementation from 2024-10.
*
* @default 'inline'
*/
Expand All @@ -43,20 +44,20 @@ export interface StackProps extends PaddingProps, SizingProps, GapProps {
justifyContent?: ContentPosition | ContentDistribution;

/**
* Aligns the Stack's children along the cross axis.
* Aligns the Stack along the cross axis.
*
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
* @default 'start'
*/
alignItems?: 'stretch' | ContentPosition;
alignContent?: 'stretch' | ContentPosition | ContentDistribution;

/**
* Aligns the Stack along the cross axis.
* Aligns the Stack's children along the cross axis.
*
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
* @default 'start'
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
* @default 'stretch'
*/
alignContent?: 'stretch' | ContentPosition | ContentDistribution;
alignItems?: 'stretch' | ContentPosition;

/**
* The vertical padding around the stack.
Expand Down Expand Up @@ -103,13 +104,11 @@ export interface StackProps extends PaddingProps, SizingProps, GapProps {

/**
* Whether the children should be stretched to fill the cross axis.
* @deprecated Has no effect.
*/
flexChildren?: boolean;

/**
* The flex value for the stack.
* @deprecated All stacks use flex 1. Use `blockSize` and `inlineSize` to customize the size of your stack.
* The flex value for the stack. Flex 1 will stretch the stack to fill the parent.
*/
flex?: number;

Expand Down

0 comments on commit ad0ebc5

Please sign in to comment.