Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

856 B
Raw Blame
import { NewspaperIcon } from '@heroicons/react/outline'

import { Article } from '../../types'

const ArticleButton = (props: Article) => {
  return (
    <div className="mr-2 mb-2 inline-block">
      <button
        tabIndex={0}
        className="
            bg-background text-foreground 
            hover:bg-background-overlay 
            border-default 
            flex items-start gap-3 rounded-md 
            border p-3 
            px-6 drop-shadow-xs transition"
      >
        <div className="w-6">
          <NewspaperIcon strokeWidth={1} />
        </div>
        <div className="flex flex-col items-start gap-0">
          <span className="text-base">{props.title}</span>
          <span className="text-foreground-light text-sm">{props.description}</span>
        </div>
      </button>
    </div>
  )
}

export default ArticleButton