mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
* fix(date-picker): error state (#5317) * fix(date-range-picker): fixed the error state in preset * Update giant-sloths-shop.md * Removed if statement * chore(date-picker): prettier --------- Co-authored-by: WK Wong <wingkwong.code@gmail.com> * fix(theme): clear button in mobile (#5252) * fix(toast): fixed close button hover position * fix(input): fixed the clear button rendering on smaller devices * Delete .changeset/soft-spoons-march.md * Update input.ts * Undo unrelated toast changes * fix(toast): icons (#5246) * feat(shared-icons): add loading icon * fix(toast): icons * chore(toast): revise types for icons * chore(changeset): add changeset * refactor: migrate eslint to v9 (#5267) * refactor: migrate eslint to v9 * chore: lint * chore: update eslint command * chore: fix lint warnings * chore: separate lint and lint:fix * chore: exclude contentlayer generated code * fix(scripts): add missing await * fix(autocomplete): persist last selected item position (#5286) * refactor(select): remove unnecessary code * fix(autocomplete): persist last selected item position * chore(changeset): add changeset * chore(deps): bump framer-motion version (#5287) * chore(deps): bump framer-motion version * fix: typing issues * chore(changeset): add changeset --------- Co-authored-by: Junior Garcia <jrgarciadev@gmail.com> * chore(docs): supplement onAction & selectionBehavior (#5289) * fix(autocomplete): ensure focused item matches selected item after filter, selection (#5290) * fix(autocomplete): ensure focused item matches selected item after filter, selection * chore: apply type and default value * chore: add perpose coment in updated code * test: add focuskey management testcode * docs: add changeset * docs: update changeset * chore: remove comment * fix: broken components in stories (#5291) * chore(switch): remove xl size * chore(docs): remove xl size * chore(system-rsc): remove xl size * chore(circular-progress): remove xl size * chore: undo * chore(deps): bump RA versions (#5310) * chore(deps): ra version bump * chore(changeset): add changeset * fix(scripts): incorrect docs path --------- Co-authored-by: Junior Garcia <jrgarciadev@gmail.com> * chore(docs): update meta data (#5311) * docs(layout.tsx): added text-foreground (#5316) * feat(tabs): add click handling for tab items in tests and implementation (#3917) Co-authored-by: WK Wong <wingkwong.code@gmail.com> * fix issues in tabs examples (#2405) Co-authored-by: WK Wong <wingkwong.code@gmail.com> * chore(docs): add missing onValueChange in CheckboxGroup (#5332) * ci(changesets): version packages (#5323) Co-authored-by: Junior Garcia <jrgarciadev@gmail.com> --------- Co-authored-by: Vishv Salvi <82429084+Vishvsalvi@users.noreply.github.com> Co-authored-by: WK Wong <wingkwong.code@gmail.com> Co-authored-by: KumJungMin <37934668+KumJungMin@users.noreply.github.com> Co-authored-by: liaoyinglong <vigossliao@gmail.com> Co-authored-by: zhengjitf <zhengjitf@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
72 lines
2.3 KiB
TypeScript
72 lines
2.3 KiB
TypeScript
"use client";
|
|
|
|
import {Button, Link} from "@heroui/react";
|
|
import NextLink from "next/link";
|
|
|
|
import {title, subtitle, titleWrapper, sectionWrapper} from "@/components/primitives";
|
|
import {CodeWindow} from "@/components/code-window";
|
|
import landingContent from "@/content/landing";
|
|
import {GradientBox} from "@/components/gradient-box";
|
|
import {CustomButton} from "@/components/demos";
|
|
|
|
export const Customization = () => {
|
|
return (
|
|
<section className={sectionWrapper({class: "mt-16 lg:mt-44"})}>
|
|
<div className="flex flex-col gap-8">
|
|
<div>
|
|
<div className={titleWrapper({class: "inline md:block"})}>
|
|
<h1 className={title({size: "lg"})}>Customization made</h1>
|
|
<div>
|
|
<h1 className={title({size: "lg", color: "pink"})}>easy.</h1>
|
|
</div>
|
|
</div>
|
|
<p className={subtitle()}>
|
|
HeroUI is based on{" "}
|
|
<Link
|
|
isExternal
|
|
className="text-xl text-default-500 font-light [&>svg]:ml-1"
|
|
href="https://tailwind-variants.org"
|
|
underline="always"
|
|
>
|
|
Tailwind Variants
|
|
</Link>
|
|
, it simplifies component slots customization while avoiding Tailwind class conflicts.
|
|
</p>
|
|
</div>
|
|
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4">
|
|
<CodeWindow
|
|
showWindowIcons
|
|
className="min-h-[320px] h-auto"
|
|
language="jsx"
|
|
title="custom-button.tsx"
|
|
value={landingContent.customizationCode}
|
|
/>
|
|
<div className="flex flex-col justify-center gap-6">
|
|
<GradientBox
|
|
isCentered
|
|
className="h-full min-h-[320px] py-12 px-8"
|
|
color="pink"
|
|
to="top-right"
|
|
>
|
|
<CustomButton />
|
|
</GradientBox>
|
|
</div>
|
|
</div>
|
|
<div className="flex w-1/2 justify-start">
|
|
<Button
|
|
aria-label="Learn more about customization"
|
|
as={NextLink}
|
|
className="max-w-fit bg-pink-100 text-pink-500 dark:bg-pink-900 dark:text-pink-300"
|
|
href="/docs/customization/customize-theme"
|
|
radius="full"
|
|
size="sm"
|
|
variant="flat"
|
|
>
|
|
Learn more
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
};
|