feat: add primary new item button
This commit is contained in:
parent
89e7018920
commit
9a1f261850
12
app/components/ui/add-button.tsx
Normal file
12
app/components/ui/add-button.tsx
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import { Plus } from 'lucide-react';
|
||||||
|
import { Button, type ButtonProps } from '~/components/ui/button';
|
||||||
|
|
||||||
|
// Primary "+ New …" action
|
||||||
|
export function AddButton({ label, ...props }: Omit<ButtonProps, 'children'> & { label: string }) {
|
||||||
|
return (
|
||||||
|
<Button {...props}>
|
||||||
|
<Plus size={14} strokeWidth={2.4} />
|
||||||
|
{label}
|
||||||
|
</Button>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user