Skip to content

Commit

Permalink
chore: add "section" as an option to the "as" list of possible values…
Browse files Browse the repository at this point in the history
… of the StackPrimitive component (#5123)
  • Loading branch information
dlcaldeira authored Jan 16, 2024
1 parent 7cc4321 commit f0770b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-bears-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@talend/design-system': patch
---

chore: add "section" as an option to the "as" list of possible values of the StackPrimitive component
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import styles from './StackPrimitive.module.scss';
import classnames from 'classnames';
import { forwardRef } from 'react';
import type { Ref, ReactNode } from 'react';
import type { ReactNode, Ref } from 'react';

import classnames from 'classnames';

import styles from './StackPrimitive.module.scss';

export const justifyOptions = {
start: 'justify-start',
Expand Down Expand Up @@ -88,7 +90,7 @@ type SpacingTypeWithAuto =
bottom: keyof typeof sizeOptionsWithAuto;
};

export const possibleAsTypes = ['div', 'ul', 'ol', 'article', 'span', 'dl'] as const;
export const possibleAsTypes = ['div', 'ul', 'ol', 'section', 'article', 'span', 'dl'] as const;

type DirectionType = 'row' | 'column';

Expand Down

0 comments on commit f0770b1

Please sign in to comment.