Vela UI Docsvenizia.ai

stars

Stars, one of the 856 Vela UI icons, in the General group: a 24px grid drawn in currentColor, so it takes the colour of the text around it. It installs on its own as @velaui/icon-stars.

  • 16px
  • 20px
  • 24px
  • 32px

Installation

pnpm dlx velaui add @velaui/icon-stars

Usage

// components/icons/stars.tsx
import Stars from "@/components/icons/stars"

<Stars className="size-5 text-muted" />

In use

  • In a button

  • In a sentence

    Due Friday, or whenever the venue confirms.

  • In an input

  • As a badge

    Scheduled
  • In an empty state

    No events on this day yet.

    Browse blocks

Source

import * as React from "react";

export interface StarsProps extends React.SVGProps<SVGSVGElement> {
  size?: number | string;
}

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Stars({ size = 24, strokeWidth = 1, className, ref, ...props }: StarsProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M14.8236 2.3999L16.6538 7.34611L21.6 9.17637L16.6538 11.0066L14.8236 15.9528L12.9933 11.0066L8.04708 9.17637L12.9933 7.34611L14.8236 2.3999Z" stroke="currentColor" strokeLinejoin="round"/>
      <path d="M6.35297 13.694L7.95179 16.0481L10.3059 17.647L7.95179 19.2458L6.35297 21.5999L4.75414 19.2458L2.40002 17.647L4.75414 16.0481L6.35297 13.694Z" stroke="currentColor" strokeLinejoin="round"/>
    </svg>
  );
}
Stars.displayName = "Stars";

export default Stars;