-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
It would be nice if it was possible to specify prop types.
Something like T::Struct in Sorbet maybe.
:ruby
prop :description, String, nil?: true
prop :count, Integer
prop :onclick, HandlerRef
%div
= if $description
%p= $description
%p Count: #{$count}
%div
%button{onclick: $onclick}Metadata
Metadata
Assignees
Labels
No labels