Nighty Docs
  • About Nighty
  • Getting Started
    • First Launch
    • Usage Guide
  • Custom Scripts
    • Scripting Reference
  • 🛠️Troubleshooting
    • The application did not respond / Unknown Integration
    • Common solutions to all issues
    • Unable to launch
    • App is just a white box, UI not appearing / looking weird
    • Retrieving License Key
    • Flagged key
    • Rich Presence doesn't show up
  • UI SCRIPTING
    • API Reference
      • Tab
      • CardContainer
      • Card
      • Group
      • UI Elements
        • Text
        • Button
        • Input
        • Image
        • Toggle
        • Select
        • Checkbox
        • Table
Powered by GitBook
On this page

Was this helpful?

  1. UI SCRIPTING
  2. API Reference
  3. UI Elements

Image

PreviousInputNextToggle

Last updated 4 months ago

Was this helpful?

class UI.Image

This documentation is a work in progress. UI scripting is a new feature, and additional content is still being added. Stay tuned for updates!

Attribute
Value

url

valid URL string This value is required.

alt

any string Default: "Image"

circle

True | False Default: False

shadow

True | False Default: False

width

%, px or auto width value.

Examples: "50%" "75px" "auto"

Default: "auto"

height

%, px or auto height value.

Examples: "50%" "75px" "auto"

Default: "auto"

rounded

"none"

"sm"

"md"

"lg"

"xl"

"2xl" Default: "md"

fill_type

"cover"

"contain" Default: "contain"

border_color

Any CSS valid color value.

See:

Examples: "#FFFFFF" "black" "rgb(255, 0, 0)" "hsla(0, 100%, 50%, 0.5)"

Default: "#FFFFFF"

border_width

integer between 0 and 10 Default: 0

margin

See . Default: "m-0"

visible

See . Default: True

CSS Color Values
Margin
Visible