mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
* docs(replace): replace sandpack demos with code blocks in customize-theme.en-US.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * docs: update demo paths in theme customization docs * docs: add first example demo and update documentation * docs(demo): add Radio component to disable-motion example Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix(demo): initialize timerRef with null for proper typing Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
457 B
TypeScript
25 lines
457 B
TypeScript
import React from 'react';
|
|
import { theme } from 'antd';
|
|
|
|
const { useToken } = theme;
|
|
|
|
const App: React.FC = () => {
|
|
const { token } = useToken();
|
|
|
|
return (
|
|
<div
|
|
style={{
|
|
backgroundColor: token.colorPrimaryBg,
|
|
padding: token.padding,
|
|
borderRadius: token.borderRadius,
|
|
color: token.colorPrimaryText,
|
|
fontSize: token.fontSize,
|
|
}}
|
|
>
|
|
Use Design Token
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default App;
|