mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 04:48:02 +08:00
6f83c63d74
* feat: New Component Watermark * docs: add watermark docs * docs: add watermark demo * test: add watermark test * test: add watermark snapshot * chore: add jest-canvas-mock * feat: Watermark calculates the width and height of content by default * docs: update docs * docs: update demo * test: update snapshot * docs: update docs * chore: update bundlesize * chore: Optimize code logic * chore: update size-limit * test: update watermark snapshot
11 lines
223 B
TypeScript
11 lines
223 B
TypeScript
import React from 'react';
|
|
import { Watermark } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Watermark content={['Ant Design', 'Happy Working']}>
|
|
<div style={{ height: 500 }} />
|
|
</Watermark>
|
|
);
|
|
|
|
export default App;
|