-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs(web-react): Add Stack demo #DS-908
- Stack demo in web-react is now same as demo in web and web-twig
- Loading branch information
1 parent
4e1b5eb
commit ac1e9aa
Showing
10 changed files
with
121 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
packages/web-react/src/components/Stack/demo/StackBlocks.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import DocsBox from '../../../../docs/DocsBox'; | ||
import Stack from '../Stack'; | ||
|
||
const StackBlocks = () => ( | ||
<Stack elementType="ul"> | ||
{[1, 2, 3].map((i) => ( | ||
<li key={i}> | ||
<DocsBox>Block {i}</DocsBox> | ||
</li> | ||
))} | ||
</Stack> | ||
); | ||
|
||
export default StackBlocks; |
17 changes: 17 additions & 0 deletions
17
...eact/src/components/Stack/demo/StackBlocksWithInnerAndOuterDividersAndVerticalSpacing.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import DocsBox from '../../../../docs/DocsBox'; | ||
import Stack from '../Stack'; | ||
|
||
const StackBlocksWithInnerAndOuterDividersAndVerticalSpacing = () => { | ||
return ( | ||
<Stack elementType="ul" hasSpacing hasIntermediateDividers hasStartDivider hasEndDivider> | ||
{[1, 2, 3].map((i) => ( | ||
<li key={i}> | ||
<DocsBox>Block {i}</DocsBox> | ||
</li> | ||
))} | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default StackBlocksWithInnerAndOuterDividersAndVerticalSpacing; |
17 changes: 17 additions & 0 deletions
17
...es/web-react/src/components/Stack/demo/StackBlocksWithInnerDividersAndVerticalSpacing.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import DocsBox from '../../../../docs/DocsBox'; | ||
import Stack from '../Stack'; | ||
|
||
const StackBlocksWithInnerDividersAndVerticalSpacing = () => { | ||
return ( | ||
<Stack elementType="ul" hasSpacing hasIntermediateDividers> | ||
{[1, 2, 3].map((i) => ( | ||
<li key={i}> | ||
<DocsBox>Block {i}</DocsBox> | ||
</li> | ||
))} | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default StackBlocksWithInnerDividersAndVerticalSpacing; |
17 changes: 17 additions & 0 deletions
17
...eb-react/src/components/Stack/demo/StackBlocksWithInnerDividersWithoutVerticalSpacing.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import DocsBox from '../../../../docs/DocsBox'; | ||
import Stack from '../Stack'; | ||
|
||
const StackBlocksWithInnerDividersWithoutVerticalSpacing = () => { | ||
return ( | ||
<Stack elementType="ul" hasIntermediateDividers> | ||
{[1, 2, 3].map((i) => ( | ||
<li key={i}> | ||
<DocsBox>Block {i}</DocsBox> | ||
</li> | ||
))} | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default StackBlocksWithInnerDividersWithoutVerticalSpacing; |
15 changes: 15 additions & 0 deletions
15
packages/web-react/src/components/Stack/demo/StackBlocksWithVerticalSpacing.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import DocsBox from '../../../../docs/DocsBox'; | ||
import Stack from '../Stack'; | ||
|
||
const StackBlocksWithVerticalSpacing = () => ( | ||
<Stack elementType="ul" hasSpacing> | ||
{[1, 2, 3].map((i) => ( | ||
<li key={i}> | ||
<DocsBox>Block {i}</DocsBox> | ||
</li> | ||
))} | ||
</Stack> | ||
); | ||
|
||
export default StackBlocksWithVerticalSpacing; |
14 changes: 14 additions & 0 deletions
14
packages/web-react/src/components/Stack/demo/StackFormFields.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import Stack from '../Stack'; | ||
import { TextField } from '../../TextField'; | ||
|
||
const StackFormFields = () => { | ||
return ( | ||
<Stack hasSpacing> | ||
<TextField id="textfieldStack1" label="Label" name="textfieldStack1" placeholder="Placeholder" isRequired /> | ||
<TextField id="textfieldStack2" label="Label" name="textfieldStack2" placeholder="Placeholder" isRequired /> | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default StackFormFields; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters