Skip to content

Commit

Permalink
docs: update Button
Browse files Browse the repository at this point in the history
  • Loading branch information
cncolder committed Jun 8, 2020
1 parent 1e795d9 commit 41f979e
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions docs/components/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ title: Button 按钮

## 示例

import { Button } from '@tarojsx/ui/dist/Button'

<Button>default</Button>

```tsx
import { Button } from '@tarojsx/ui'

<Button>default</Button>

<Button type="primary">primary</Button>
Expand All @@ -20,24 +18,6 @@ import { Button } from '@tarojsx/ui/dist/Button'
<Button type="error">error</Button>
```

export const Highlight = ({ children, color }) => (
<span
style={{
backgroundColor: color,
borderRadius: '2px',
color: '#fff',
padding: '0.2rem',
}}
>
{children}
</span>
)

<Highlight color="#25c2a0">Docusaurus green</Highlight> and
<Highlight color="#1877F2">Facebook blue</Highlight> are my favorite colors.

I can write **Markdown** alongside my _JSX_!

```tsx live
function Clock(props) {
const [date, setDate] = useState(new Date())
Expand Down

0 comments on commit 41f979e

Please sign in to comment.