mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
27 lines
628 B
TypeScript
27 lines
628 B
TypeScript
import {
|
|
Checkbox,
|
|
Field,
|
|
FieldContent,
|
|
FieldDescription,
|
|
FieldGroup,
|
|
FieldLabel,
|
|
} from "@lcui/react";
|
|
|
|
export default function App() {
|
|
return (
|
|
<FieldGroup className="max-w-sm">
|
|
<Field orientation="horizontal">
|
|
<Checkbox id="terms-checkbox-desc" checked />
|
|
<FieldContent>
|
|
<FieldLabel for="terms-checkbox-desc">
|
|
Accept terms and conditions
|
|
</FieldLabel>
|
|
<FieldDescription>
|
|
By clicking this checkbox, you agree to the terms and conditions.
|
|
</FieldDescription>
|
|
</FieldContent>
|
|
</Field>
|
|
</FieldGroup>
|
|
);
|
|
}
|