Boxicon (Surface Boxicons v0.6.0) View Source
Boxicon is surface component library that wraps the amazing boxicons library.
Usage:
defmodule MyComponent do
use Surface.Component
@impl true
def render(assigns) do
~F"""
<Boxicon
name="calendar"
type="regular"
size="64"
class="icon green"
/>
"""
end
endTo get a full list of all the available icons, go to https://boxicons.com/
Properties
- type :string, values!: ["solid", "regular", "logos"] - Type of the icon
- name :string, required: true - Name of the icon
- size :integer - Width & height of the icon
- class :string - CSS classes for the wrapping svg element
Link to this section Summary
Functions
Callback implementation for Surface.Component.render/1.