A design system in a box.
hip-ui.tngl.io/docs/introduction
1import * as stylex from "@stylexjs/stylex";
2
3import { Button } from "@/components/button";
4import { Form } from "@/components/form";
5import { TextField } from "@/components/text-field";
6
7const styles = stylex.create({
8 form: {
9 width: "min(300px, 80%)",
10 },
11});
12
13export function Basic() {
14 return (
15 <Form style={styles.form}>
16 <TextField name="email" type="email" isRequired label="Email" />
17 <TextField name="password" type="password" isRequired label="Password" />
18 <Button type="submit">Submit</Button>
19 </Form>
20 );
21}