0.0.3 • Published 6 years ago

nuke-biz-custom-feedback v0.0.3

Weekly downloads
17
License
-
Repository
gitlab
Last release
6 years ago

CustomFeedback

  • category: UI
  • chinese: 图标
  • type: UI组件

何时使用

页面顶部的提示条,默认占满全屏宽度

API

参数说明类型默认值
type类型:'success', 'info', 'warning', 'error'string'success'
title错误标题string
message错误内容string

demo

const md={
  Core:{
    'color-brand1-6':'#1a9cb7',
    'font-size-body-2': 14 * 2,
    'font-size-body-1': 14 * 2,
    'font-size-caption': 12 * 2,
  }
}
return (
  <StyleProvider style={md} androidConfigs={{ materialDesign: true }}>
    <CustomFeedback type="success" title="Success" message="There is something right for the right there is something right" />

    <CustomFeedback type="info" title="Infomational Notes"/>

    <CustomFeedback type="warning" title="Warning" message="There is something right for the right there is something right" />

    <CustomFeedback type="error" title="Error" message="There is something right for the right there is something right" />
  </StyleProvider>
)