SHARE
TWEET

Untitled

a guest Jan 14th, 2020 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react'
  2. import { Header } from '../src/index'
  3. import '../src/Header/style'
  4. export default { title: 'Header' }
  5.  
  6. export const withText: React.FunctionComponent = () => <Header>Hello</Header>
  7.  
  8. export const withBack: React.FunctionComponent = () => <Header left={<a>back</a>}>超级测试</Header>
  9.  
  10. export const withMore: React.FunctionComponent = () => <Header left={<a>back</a>} right={<a>分享</a>}>为什么要买</Header>
  11.  
  12. export const withTitleOverflow: React.FunctionComponent = () => <Header>BMW 1-Series Hatchback 116i 2013款 1.6L</Header>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top