# Builtin Intrinsic Elements
These are just Gtk widgets which can be used without explicitly importing. For
example `` and `` are exactly the same thing.
## Gtk4
### box
[Gtk.Box](https://docs.gtk.org/gtk4/class.Box.html)
```tsx
```
### button
[Gtk.Button](https://docs.gtk.org/gtk4/class.Button.html)
```tsx
```
### centerbox
[Gtk.CenterBox](https://docs.gtk.org/gtk4/class.CenterBox.html)
```tsx
```
### drawingarea
[Gtk.DrawingArea](https://docs.gtk.org/gtk4/class.DrawingArea.html)
```tsx
self.set_draw_func((area, cr, width, height) => {
//
})
}
/>
```
### entry
[Gtk.Entry](https://docs.gtk.org/gtk4/class.Entry.html)
```tsx
print(text)}
/>
```
### image
[Gtk.Image](https://docs.gtk.org/gtk4/class.Image.html)
```tsx
```
### label
[Gtk.Label](https://docs.gtk.org/gtk4/class.Label.html)
```tsx
```
### levelbar
[Gtk.LevelBar](https://docs.gtk.org/gtk4/class.LevelBar.html)
```tsx
```
### menubutton
[Gtk.MenuButton](https://docs.gtk.org/gtk4/class.MenuButton.html)
```tsx
button content
popover content
```
### overlay
[Gtk.Overlay](https://docs.gtk.org/gtk4/class.Overlay.html)
```tsx
```
### revealer
[Gtk.Revealer](https://docs.gtk.org/gtk4/class.Revealer.html)
```tsx
print("animation finished")}
>
```
### scrolledwindow
[Gtk.ScrolledWindow](https://docs.gtk.org/gtk4/class.ScrolledWindow.html)
```tsx
```
### slider
[Astal.Slider](https://aylur.github.io/libastal/astal4/class.Slider.html)
```tsx
print(value)}
/>
```
### stack
[Gtk.Stack](https://docs.gtk.org/gtk4/class.Stack.html)
```tsx
```
### switch
[Gtk.Switch](https://docs.gtk.org/gtk4/class.Switch.html)
```tsx
print(active)} />
```
### togglebutton
[Gtk.ToggleButton](https://docs.gtk.org/gtk4/class.ToggleButton.html)
```tsx
print(active)} />
```
### window
[Astal.Window](https://aylur.github.io/libastal/astal4/class.Window.html)
```tsx
```
> [!WARNING]
>
> In Gtk4 windows are invisible by default, so don't forget to pass `visible`.
## Gtk3
### box
[Gtk.Box](https://docs.gtk.org/gtk3/class.Box.html)
```tsx
```
### button
[Gtk.Button](https://docs.gtk.org/gtk3/class.Button.html)
```tsx
```
### centerbox
[Astal.CenterBox](https://aylur.github.io/libastal/astal3/class.CenterBox.html)
```tsx
```
### circularprogress
[Astal.CircularProgress](https://aylur.github.io/libastal/astal3/class.CircularProgress.html)
```tsx
```
```css
circularprogress {
color: green;
background-color: black;
font-size: 6px;
margin: 2px;
min-width: 32px;
}
```
### drawingarea
[Gtk.DrawingArea](https://docs.gtk.org/gtk3/class.DrawingArea.html)
```tsx
{
//
}}
/>
```
### entry
[Gtk.Entry](https://docs.gtk.org/gtk3/class.Entry.html)
```tsx
print("text changed", text)}
onActivate={({ text }) => print("enter", text)}
/>
```
### eventbox
[Astal.EventBox](https://aylur.github.io/libastal/astal3/class.EventBox.html)
```tsx
{
print(event.modifier, event.button)
}}
/>
```
### icon
[Astal.Icon](https://aylur.github.io/libastal/astal3/class.Icon.html)
```tsx
```
```css
icon {
font-size: 16px;
}
```
### label
[Astal.Label](https://aylur.github.io/libastal/astal3/class.Label.html)
```tsx
```
### levelbar
[Astal.LevelBar](https://aylur.github.io/libastal/astal3/class.LevelBar.html)
```tsx
```
### overlay
[Astal.Overlay](https://aylur.github.io/libastal/astal3/class.Overlay.html)
```tsx
child
overlay 1
```
### revealer
[Gtk.Revealer](https://docs.gtk.org/gtk3/class.Revealer.html)
```tsx
print("animation finished")}
>
```
### scrollable
[Astal.Scrollable](https://aylur.github.io/libastal/astal3/class.Scrollable.html)
```tsx
```
### slider
[Astal.Slider](https://aylur.github.io/libastal/astal3/class.Slider.html)
```tsx
print(value)} />
```
### stack
[Astal.Stack](https://aylur.github.io/libastal/astal3/class.Stack.html)
```tsx
```
### switch
[Gtk.Switch](https://docs.gtk.org/gtk3/class.Switch.html)
```tsx
print(active)} />
```
### overlay
[Astal.Overlay](https://aylur.github.io/libastal/astal3/class.Overlay.html)
```tsx
child
overlay 1
overlay 1
```
### togglebutton
[Gtk.ToggleButton](https://docs.gtk.org/gtk4/class.ToggleButton.html)
```tsx
print(active)} />
```
### window
[Astal.Window](https://aylur.github.io/libastal/astal4/class.Window.html)
```tsx
```