- Notifications
You must be signed in to change notification settings - Fork12
The home of the ClickHouse design system and component library.
NotificationsYou must be signed in to change notification settings
ClickHouse/click-ui
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The home of the ClickHouse design system and component library.
Click UI has been tested in NextJS, Gatsby, and Vite. If you run into problems using it in your app, please create an issue and our team will try to answer.
- Navigate to your app's route and run
npm i @clickhouse/click-uioryarn add @clickhouse/click-ui - Make sure to wrap your application in the Click UI
ClickUIProvider, without doing this, you may run into issues with styled-components. Once thats done, you'll be able to import the individual components that you want to use on each page. Here's an example anApp.tsxin NextJS.
import{ClickUIProvider,Text,ThemeName,Title,Switch}from'@clickhouse/click-ui'functionApp(){const[theme,setTheme]=useState<ThemeName>('dark')consttoggleTheme=()=>{theme==='dark' ?setTheme('light') :setTheme('dark')}return(<ClickUIProvidertheme={theme}config={{tooltip:{delayDuration:0}}}><Switchchecked={theme==='dark'}onClick={()=>toggleTheme()}/><Titletype='h1'>ClickUIExample</Title><Text>WelcometoClickUI.Getstartedhere.</Text></ClickUIProvider>)}exportdefaultApp
- Clone this repo, cd into the
click-uidirectory - To install dependencies, run
npm i - To build the latest styles, run
npm run generate-tokens - To run ClickUI locally, run
npm run devand navigate tohttp://localhost:5173 - To run Storybook locally, run
npm run storybookand navigate tohttps://localhost:6006
Enjoy!
New versions and release notes are available atGitHub Releases.
To create a new release and publish a new version, follow the instructions inpublish.md.
About
The home of the ClickHouse design system and component library.
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.