theophilusx.yorick.basic
A collection of simple components which are too basic to require their own namespace.
a
(a title & {:keys [href on-click class attrs icon-data]})Creates an anchor component. The required argument is the text title to be used in the anchor. Optional keyword arguments include
| Key | Description |
|---|---|
:href |
a hypertext reference. Defaults to # if not provided |
:on-click |
a function with no arguments to be executed when the |
| link is clicked | |
:class |
a string or vector of strings representing CSS class names |
:attrs |
a map of HTML attribute values. Keys are HTML attribute |
names as keywords e.g. :role |
|
:icon-data |
an icon definition map to add an icon to the link title. |
See theophilusx.yorick.icon for details on map structure |
breadcrumbs
| Key | Description |
|---|---|
:name |
Text to use in the link |
:icon |
An icon data map describing an icon to add to the link |
See theophilusx.yorick.icon for description of icon data map |
|
:active |
True if this link is active |
:value |
The value to set in the global state atom when the link is |
| selected |
This component also accepts optional keyword arguments
| Key | Description |
|---|---|
:class |
A string or vector of strings representing CSS class names |
:position |
Position of the breadcrumbs, either :center or :right |
:separator |
Type of link separator to use. Possible values are |
:arrow, :bullet, :dot, :succeeds |
|
:size |
Size of the breadcrumbs. Possible values are :small, |
:medium, :large |