SupabaseSurface.Components.Typography.Text (supabase_surface v0.4.1)
Properties
- type :atom, values: [:default, :success, :danger, :secondary, :warning] - The type (color) of the text.
- disabled :boolean, default: false - Apply
disabledstyle. - underline :boolean, default: false - Apply
underlinestyle. - strikethrough :boolean, default: false - Apply
strikethroughstyle. - small :boolean, default: false - Apply
smallstyle. - class :css_class - CSS classes to apply.
- html_type :string, values: ["span", "kbd", "code", "mark", "strong"], default: "span" - Which html tag to use for enclosing the tag.
- opts :keyword, default: [] - Additional options passed to the element.
Slots
- default, required: true - The content.
Link to this section Summary
Functions
Callback implementation for Phoenix.LiveComponent.mount/1.
Callback implementation for Phoenix.LiveComponent.update/2.
Link to this section Functions
Link to this function
mount(socket)
Callback implementation for Phoenix.LiveComponent.mount/1.
Link to this function
render_text(classes, assigns, attrs)
Link to this function
update(assigns, socket)
Callback implementation for Phoenix.LiveComponent.update/2.