import {createRemoteComponent} from '@remote-ui/core'; import type {MaybeResponsiveConditionalStyle} from '../../style'; import type { BlockAlignment, BorderProps, CornerProps, InlineAlignment, SizingProps, Spacing, SpacingProps, ViewLikeAccessibilityRole, } from '../shared'; export interface InlineStackProps extends BorderProps, CornerProps, SizingProps, SpacingProps { /** * Sets the semantic meaning of the component’s content. When set, * the role will be used by assistive technologies to help buyers * navigate the page. * * * For example: * * - In an HTML host a `'listItem'` string will render: `
  • ` * * - In an HTML host a `['listItem', 'separator']` tuple will render: `
  • ` */ accessibilityRole?: ViewLikeAccessibilityRole; /** * A label that describes the purpose or contents of the element. When set, * it will be announced to buyers using assistive technologies and will * provide them with more context. */ accessibilityLabel?: string; /** * Position children along the cross axis * * @defaultValue 'start' */ blockAlignment?: MaybeResponsiveConditionalStyle; /** * Position children along the main axis * * @defaultValue 'start' */ inlineAlignment?: MaybeResponsiveConditionalStyle; /** * Adjust spacing between children * * - `base` means the space between rows and columns is `base`. * * - [`base`, `none`] means the space between rows is `base`, space between columns is `none`. * * @defaultValue 'base' **/ spacing?: MaybeResponsiveConditionalStyle; /** * A unique identifier for the component. */ id?: string; /** * Sets the overflow behavior of the element. * * `hidden`: clips the content when it is larger than the element’s container. * The element will not be scrollable and the users will not be able * to access the clipped content by dragging or using a scroll wheel. * * `visible`: the content that extends beyond the element’s container is visible. * * @default 'visible' */ overflow?: 'hidden' | 'visible'; } /** * InlineStack is used to lay out a horizontal row of elements. Elements always wrap. */ export const InlineStack = createRemoteComponent< 'InlineStack', InlineStackProps >('InlineStack');