IconHero

It is a component closing the icon from the circle and or a square used to visually highlight the message in interface elements such as Modal.

IconHeroBosons

Color
Color from the Tailwind palette.
type: string
default: primary
values: primary, secondary, warning, info, success, danger
Size
IconHero size.
type: string
default: md
values: xs, sm, md, lg, xl
Outline
Is outline?
type: bool
default: false
Transparent
Is transparent?
type: bool
default: false
Noborder
It has no border?
type: bool
default: false
Square
Shape of icon area.
type: bool
default: false
ViewBox
Size of viewbox for svg.
type: string
default: 0 0 32 32
Attrs
Sets attributes in the html tag.
type: gopress.Attrs

Examples

Sizes
xs
sm
md
lg
xl
1// IconHero with md size
2
3@protons.IconHero(
4  &protons.IconHeroBosons{
5    Size: "md",
6  },
7) {
8  @icons.IconCheck()
9}
Colors
primary
secondary
warning
danger
success
info
1// IconHero with primary color
2
3@protons.IconHero(
4  &protons.IconHeroBosons{
5    Color: "primary",
6  },
7) {
8  @icons.IconCheck()
9}
Sizes with outline variant
xs
sm
md
lg
xl
 1// IconHero with md size and outline variant
 2
 3@protons.IconHero(
 4  &protons.IconHeroBosons{
 5    Outline: true,
 6    Size: "md",
 7  },
 8) {
 9  @icons.IconCheck()
10}
Colors with outline variant
primary
secondary
warning
danger
success
info
 1// IconHero with primary color and outline variant
 2
 3@protons.IconHero(
 4  &protons.IconHeroBosons{
 5    Outline: true,
 6    Color: "primary",
 7  },
 8) {
 9  @icons.IconCheck()
10}
Shape and transparency
square
transparent
 1// IconHero with square and transparency variant
 2
 3@protons.IconHero(
 4  &protons.IconHeroBosons{
 5    Color:       "primary",
 6    Square:      true,
 7    Transparent: true,
 8    Outline:     true,
 9  },
10) {
11  @icons.IconCheck()
12}

Let's dive deeper and connect!

Hanariu is brought to you by Pay For Done. We specialize in crafting products and services rooted in design systems. Join our community to discuss how we can support you.


© 2024 Pay For Done. All Rights Reserved. Website compliant with W3C validation.