New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

antd-token-previewer

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antd-token-previewer

Ant Design token previewer

2.0.8
latest
Source
npm
Version published
Weekly downloads
29K
-9.35%
Maintainers
1
Weekly downloads
 
Created
Source

antd-token-previewer 🖥

Help you customize theme in Ant Design.

image

Live Demo

https://ant-design.github.io/antd-token-previewer/

Install

npm i antd-token-previewer

Usage

Ref: https://ant-design.github.io/antd-token-previewer/editor

API

ThemeEditor

PropertyDescriptionTypeDefault
themeControlled Theme objectTheme-
onThemeChangeCallback when theme changed(theme: Theme) => void-
localeLanguage used in ThemeEditorLocalezhCN
actionsActions displayed on the right of headerReact.ReactNode-
advancedAdvance modeboolean-
onAdvancedChangeCallback when advanced change(advanced: booleaen) => void-
childrenPreview area.ReactNode-

Theme

PropertyDescriptionType
nameName of Themestring
keyUsed as key for ReactElementstring
configTheme config of antdThemeConfig

Development

npm install
npm start

License

antd-token-previewer is released under the MIT license.

Keywords

react

FAQs

Package last updated on 06 Feb 2024

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