Skip to content

Restructuring of yoast-components #832

Description

@atimmer

We need to restructure yoast-components

Decisions

  • API will be import { Button } from "@yoast/components"
  • API for complex composites will be `import { SnippetPreview } from "@yoast/preview-components" / "@yoast/metadata-previews"
  • No css folder
  • No redux folder
  • We'll have a packages/components folder. (Moving to the mono-repo structure)

Todos

Do the restructure

  • Move all current components to the new folder structure.

Remaining todos

  • Consolidate all the different buttons into one stack of buttons.
  • (Maybe?) Refactor determineFacebookImageProperties.js into separate files.

We want to inspect the following components:

  • Input
  • Label
  • Progressbar
  • Section
  • StyledSection
  • Textarea
  • Textfield
  • Icon

We need to change the following things:

  • DismissButton should inherit from Button.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions