Skip to content

tatsmaki/solid-uix

Repository files navigation

Solid UIX

Storybook

Install

npm install solid-uix

Default font

Solid UIX uses the Inter font by default. See Setup — Fonts for complete details.

Quick start

Import components and styles.

import { Button, TextInput, Checkbox, Field } from "solid-uix";
import "solid-uix/css";

const Example = () => {
  return (
    <form>
      <Field>
        <Field.Label>Email</Field.Label>
        <TextInput name="email" />
      </Field>

      <Checkbox name="consent" label="I agree" />
      <Button type="submit">Submit</Button>
    </form>
  );
};

Server Side Rendering

Resolve styles as URL and append metadata element to document head. Stylesheet will be preloaded. See @solidjs/meta Link

import styles from "solid-uix/css?url";

<head>
  <link rel="stylesheet" href={style} />
</head>;

About

SolidJS UI components

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published