mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +08:00
17 lines
344 B
TypeScript
17 lines
344 B
TypeScript
|
import React from 'react';
|
||
|
import { Alert } from 'antd';
|
||
|
import Marquee from 'react-fast-marquee';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Alert
|
||
|
banner
|
||
|
message={
|
||
|
<Marquee pauseOnHover gradient={false}>
|
||
|
I can be a React component, multiple React components, or just some text.
|
||
|
</Marquee>
|
||
|
}
|
||
|
/>
|
||
|
);
|
||
|
|
||
|
export default App;
|