Files
clan-core/pkgs/clan-app/ui
Glen Huang f22c8f166e ui: use css modules for Button, Icon and Loader
Changes:
- use mergeProps to set default values instead of using ||
- Let a parent component override a child by specifying `in`
- Button can only have at most two icons,  make it accept icon and endIcon
- Rely on class to denote Button's icon type, instead of querying the DOM structure in css
- Dynamic with undefined as the component already skips rendering, no need to explicit check the component value
- move fgClass in css.tsx to a css module
2025-09-19 17:32:29 +08:00
..
2025-07-16 17:12:09 +02:00
2025-08-21 19:11:08 +02:00
2025-09-04 19:35:06 +02:00
2025-05-26 12:56:51 +01:00
2025-06-19 16:03:21 +01:00
2025-09-04 19:35:06 +02:00

Usage

Those templates dependencies are maintained via pnpm via pnpm up -Lri.

This is the reason you see a pnpm-lock.yaml. That being said, any package manager will work. This file can be safely be removed once you clone a template.

$ npm install # or pnpm install or yarn install

Learn more on the Solid Website and come chat with us on our Discord

Available Scripts

In the project directory, you can run:

npm run dev or npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

npm run build

Builds the app for production to the dist folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

npm run storybook

Starts an instance of storybook.

For more info on how to write stories, please see here.

Deployment

You can deploy the dist folder to any static host provider (netlify, surge, now, etc.)