Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@aligov/mobile-c-button

xiazhiqiang19MIT1.0.5TypeScript support: included

政务移动端基础组件button

Rax, rax-component

readme

@aligov/mobile-c-button

Install

$ npm install @aligov/mobile-c-button --save

Usage

import Button from '@aligov/mobile-c-button';

API

Props

name type default describe
type String 'secondary' 可选值:primary,secondary,light,warning
size String 'medium' 可选值:large,medium,small
text Bool false 是否为文本
disabled Bool false 是否为禁用态
block Bool false 是否独占一行

Function

name param return describe
onClick Func () => {} 点击行为

Example

import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import Button from '@aligov/mobile-c-button';

render(<Button type="primary"><Text>按钮</Text></Button>, document.body, { driver: DriverUniversal });