Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@sushiswap/ui / README.md
Size: Mime:

UI

UI library

Goals

  • Accessibility (jsx-a11y/strict enabled)

Components

  • App
    • Shell
    • Header
    • Nav
  • Dialog
    • Actions
    • Content
    • Description
    • Header
  • Menu
    • Button
    • List
    • Item
  • Select
    • Button
    • Label
    • Option

Lint

pnpm exec turbo run lint --scope=ui

Component convention

FC is redudant, let's avoid unessasary inports and just use regular functions

type Props = { children?: React.ReactNode }

function Component({ children }: Props): JSX.Element { return <>I'm a typed component</> }

Resources

https://react-typescript-cheatsheet.netlify.app/docs/advanced/patterns_by_usecase/#props-extracting-prop-types-of-a-component