import * as React from 'react'; import { DefaultPalette, Stack, IStackStyles, IStackTokens, IStackItemStyles } from '@fluentui/react'; // Styles definition const stackStyles: IStackStyles = { root: { background: DefaultPalette.themeTertiary, }, }; const stackItemStyles: IStackItemStyles = { root: { background: DefaultPalette.themePrimary, color: DefaultPalette.white, padding: 5, }, }; const itemAlignmentsStackStyles: IStackStyles = { root: { background: DefaultPalette.themeTertiary, height: 100, }, }; // Tokens definition const containerStackTokens: IStackTokens = { childrenGap: 5 }; const horizontalGapStackTokens: IStackTokens = { childrenGap: 10, padding: 10, }; const itemAlignmentsStackTokens: IStackTokens = { childrenGap: 5, padding: 10, }; const clickableStackTokens: IStackTokens = { padding: 10, }; export const HorizontalStackReversedExample: React.FunctionComponent = () => { return ( Default horizontal stack Item One Item Two Item Three Horizontal gap between items Item One Item Two Item Three Item alignments Auto-aligned item Stretch-aligned item Baseline-aligned item Start-aligned item Center-aligned item End-aligned item Clickable stack Click inside this box ); }; function _onClick() { alert('Clicked Stack'); }