ant-design/components/pagination/demo/align.tsx
ice e76e386966
feat(Pagination): simple prop extend to object & add align prop (#49562)
* feat(pagination): simple prop extend to object

* feat(pagination): add align prop

* Update components/pagination/Pagination.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>

* refactor: remove useless types

* refactor(List): align prop

---------

Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-06-25 21:27:11 +08:00

15 lines
338 B
TypeScript

import React from 'react';
import { Pagination } from 'antd';
const App: React.FC = () => (
<>
<Pagination align="start" defaultCurrent={1} total={50} />
<br />
<Pagination align="center" defaultCurrent={1} total={50} />
<br />
<Pagination align="end" defaultCurrent={1} total={50} />
</>
);
export default App;