mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import {
|
|
Checkbox,
|
|
Field,
|
|
FieldContent,
|
|
FieldDescription,
|
|
FieldGroup,
|
|
FieldLabel,
|
|
FieldTitle,
|
|
Label,
|
|
} from "@lcui/react";
|
|
|
|
export default function App() {
|
|
return (
|
|
<FieldGroup className="max-w-sm">
|
|
<Field orientation="horizontal">
|
|
<Checkbox id="terms-checkbox" />
|
|
<Label for="terms-checkbox">Accept terms and conditions</Label>
|
|
</Field>
|
|
<Field orientation="horizontal">
|
|
<Checkbox id="terms-checkbox-2" checked />
|
|
<FieldContent>
|
|
<FieldLabel for="terms-checkbox-2">
|
|
Accept terms and conditions
|
|
</FieldLabel>
|
|
<FieldDescription>
|
|
By clicking this checkbox, you agree to the terms.
|
|
</FieldDescription>
|
|
</FieldContent>
|
|
</Field>
|
|
<Field orientation="horizontal" disabled>
|
|
<Checkbox id="toggle-checkbox" disabled />
|
|
<FieldLabel for="toggle-checkbox">Enable notifications</FieldLabel>
|
|
</Field>
|
|
<FieldLabel for="toggle-checkbox-2">
|
|
<Field orientation="horizontal">
|
|
<Checkbox id="toggle-checkbox-2" />
|
|
<FieldContent>
|
|
<FieldTitle>Enable notifications</FieldTitle>
|
|
<FieldDescription>
|
|
You can enable and disable notifications at any time.
|
|
</FieldDescription>
|
|
</FieldContent>
|
|
</Field>
|
|
</FieldLabel>
|
|
</FieldGroup>
|
|
);
|
|
}
|