Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

docs(Layout): update documentation page #1595

Merged
merged 10 commits into from
Jul 10, 2019
Merged

docs(Layout): update documentation page #1595

merged 10 commits into from
Jul 10, 2019

Conversation

layershifter
Copy link
Member

This PR updates of Layout guide:

  • page was transformed to MDX
  • section about Segment and Box was removed completely
  • Flex Recipes were move to Flex docs
  • I also tried to make examples more descriptive

const ExampleSnippet = ({ render = () => null, value }: ExampleSnippetProps) => {
const element = render()
const string = value || renderElementToJSX(element, !value)
const ExampleSnippet: React.FunctionComponent<ExampleSnippetProps> = props => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Component was updated to support passing child element:

<ExampleSnippet>
  <Flex gap="gap.small">
    <Button content="Accept" />
    <Button content="Deny" />
  </Flex>
</ExampleSnippet>

@codecov
Copy link

codecov bot commented Jul 8, 2019

Codecov Report

Merging #1595 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1595   +/-   ##
=======================================
  Coverage   71.53%   71.53%           
=======================================
  Files         848      848           
  Lines        6932     6932           
  Branches     1977     1977           
=======================================
  Hits         4959     4959           
  Misses       1967     1967           
  Partials        6        6

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 70937d3...cde46a4. Read the comment docs.

docs/src/pages/Layout.mdx Outdated Show resolved Hide resolved
docs/src/pages/Layout.mdx Outdated Show resolved Hide resolved
layershifter and others added 3 commits July 10, 2019 11:08
Co-Authored-By: Pavel Lučivňák <pavel.lucivnak@gmail.com>
Co-Authored-By: Pavel Lučivňák <pavel.lucivnak@gmail.com>
@vercel
Copy link

vercel bot commented Jul 10, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://stardust-react-git-docs-layout.stardust-ui.now.sh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants