Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The home of the ClickHouse design system and component library.

NotificationsYou must be signed in to change notification settings

ClickHouse/click-ui

Repository files navigation

The home of the ClickHouse design system and component library.

Using Click UI in an external app

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.

  1. Navigate to your app's route and runnpm i @clickhouse/click-uioryarn add @clickhouse/click-ui
  2. Make sure to wrap your application in the Click UIClickUIProvider, 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.tsx in 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

To develop this library locally 🚀

  1. Clone this repo, cd into theclick-ui directory
  2. To install dependencies, runnpm i
  3. To build the latest styles, runnpm run generate-tokens
  4. To run ClickUI locally, runnpm run dev and navigate tohttp://localhost:5173
  5. To run Storybook locally, runnpm run storybook and navigate tohttps://localhost:6006

Enjoy!

Releases and Versions

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

Stars

Watchers

Forks

Packages

No packages published

Contributors24

Languages


[8]ページ先頭

©2009-2025 Movatter.jp