BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shuip/submit-button

submit-button

shuip/submit-button
FreeComponent

shuip publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by shuip on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://shuip.plvo.dev/r/submit-button.json

Source

./items/components/submit-button/component.tsxshuip.plvo.dev/r/submit-button.json
1import { ReloadIcon } from '@radix-ui/react-icons';
2import type { VariantProps } from 'class-variance-authority';
3import type * as React from 'react';
4import { Button, type buttonVariants } from '@/components/ui/button';
5
6type ButtonProps = React.ComponentProps<'button'> &
7 VariantProps<typeof buttonVariants> & {
8 asChild?: boolean;
9 };
10
11export interface SubmitButtonProps extends ButtonProps {
12 children?: React.ReactNode;
13 disabled?: boolean;
14 loading?: boolean;
15 icon?: React.JSX.Element;
16}
17
18export function SubmitButton({
19 children,
20 disabled,
21 loading,
22 icon = <ReloadIcon className='mr-2 size-4 animate-spin' aria-label='Loading' />,
23 ...props
24}: SubmitButtonProps) {
25 return (
26 <Button type='submit' aria-label='Submit' disabled={disabled || loading} {...props}>
27 {loading && icon}
28 {children || 'Submit'}
29 </Button>
30 );
31}

What it pulls in

npm packages

  • @radix-ui/react-icons
  • class-variance-authority
  • react

Other registry items

  • button

Files it writes

  • ./items/components/submit-button/component.tsx

Facts

Registry
shuip
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on shuip shuip.plvo.dev Raw registry item This item as JSON

More from shuip

All 52 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
confirmation-dialogconfirmation-dialogshuipComponentsFree1 dep
copy-buttoncopy-buttonshuipComponentsFree3 deps
hover-revealhover-revealshuipComponentsFree1 dep
rhf-address-fieldrhf-address-fieldshuipComponentsFree5 deps · 2 files
rhf-autocomplete-fieldrhf-autocomplete-fieldshuipComponentsFree4 deps
rhf-checkbox-fieldrhf-checkbox-fieldshuipComponentsFree3 deps
rhf-combobox-fieldrhf-combobox-fieldshuipComponentsFree5 deps
rhf-date-fieldrhf-date-fieldshuipComponentsFree6 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex