🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@txdfe/at-title

Package Overview
Dependencies
Maintainers
7
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@txdfe/at-title

--- title: zh-CN: 标题组件 en-US: at-title order: 0 ---

latest
npmnpm
Version
1.1.3
Version published
Maintainers
7
Created
Source

title: zh-CN: 标题组件 en-US: at-title order: 0

zh-CN

标题组件,传入的内容过长时,展示tooltip

import Title from '@txdfe/at-title';

class Demo extends React.Component {
  render() {
    return (
      <div className='example'>
        <div style={{
          width: 200
        }}>
          <Title>21313212131321221313212131321213132121313212131321213132121313211313212131321213132121313212131321</Title>
        </div>
        <Title>2131321213132121313212131321213132121313212131321</Title>
        <div style={{
          width: 200
        }}>
          <Title>112</Title>
        </div>
      </div>
    );
  }
}

ReactDOM.render(<Demo />, mountNode);
.example {
  background: rgba(0, 0, 0, 0.05);
  height: 400px;
  width: 300px;
}

API

参考Balloon.Tooltip的api,除了trigger,传入的属性都会透传给Balloon.Tooltip

FAQs

Package last updated on 15 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts