bufferapp/ui

View on GitHub
src/documentation/examples/States/StatesSmallWithMedia.tsx

Summary

Maintainability
B
6 hrs
Test Coverage
import React from 'react'
// @ts-expect-error TS(2307) FIXME: Cannot find module '@bufferapp/ui/States' or its c... Remove this comment to see the full error message
import States from '@bufferapp/ui/States'
// @ts-expect-error TS(2307) FIXME: Cannot find module '@bufferapp/ui/Button' or its c... Remove this comment to see the full error message
import Button from '@bufferapp/ui/Button'
import styled from 'styled-components'

const Wrapper = styled.div`
  height: 426px;
  width: 480px;
  border: 1px solid black;
  background-color: white;
`

/** States Small with Media Example */
export default function ExampleStates() {
  return (
    <Wrapper>
      <States size="small">
        <States.Media>
          <iframe
            title="buffer promo vid"
            width="300"
            height="200"
            src="https://www.youtube.com/embed/KHWHAeWQ1u8"
            frameBorder="0"
            allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
            allowFullScreen
          />
        </States.Media>
        <States.Header>We are trying to tell you something</States.Header>
        <States.Description>
          We have something very important to tell you that you should know
          about and we would like to kindly tell you what that is.
        </States.Description>
        <States.Buttons>
          <Button type="primary" onClick={() => {}} label="Click Me" />
        </States.Buttons>
      </States>
    </Wrapper>
  )
}