Button 36

PreviousNext

Security icon button with destructive gradient background effect

Docs
shadcn-studiocomponent

Preview

Loading preview…
registry/new-york/components/button/button-36.tsx
import { ShieldAlertIcon } from 'lucide-react'

import { Button } from '@/registry/new-york/ui/button'

const IconButtonGradientDemo = () => {
  return (
    <Button
      size='icon'
      className='from-destructive via-destructive/60 to-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 bg-transparent bg-gradient-to-r [background-size:200%_auto] text-white hover:bg-transparent hover:bg-[99%_center]'
    >
      <ShieldAlertIcon />
      <span className='sr-only'>Security</span>
    </Button>
  )
}

export default IconButtonGradientDemo

Installation

npx shadcn@latest add @shadcn-studio/button-36

Usage

import { Button36 } from "@/components/button-36"
<Button36 />