Documentation
¶
Overview ¶
Package card provides card components following shadcn/ui patterns. Cards are compound components with Header, Title, Description, Content, and Footer.
Index ¶
- func Card(children ...g.Node) g.Node
- func CardWithOptions(opts []Option, children ...g.Node) g.Node
- func Content(children ...g.Node) g.Node
- func Description(text string, opts ...Option) g.Node
- func Footer(children ...g.Node) g.Node
- func Header(children ...g.Node) g.Node
- func Title(text string, opts ...Option) g.Node
- type Option
- type Props
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Card ¶
Card creates a card container Use with Header, Title, Description, Content, and Footer components
Example:
card.Card(
card.Header(
card.Title("Card Title"),
card.Description("Card description"),
),
card.Content(
g.Text("Card content here"),
),
card.Footer(
button.Primary(g.Text("Action")),
),
)
func CardWithOptions ¶
CardWithOptions creates a card with options
func Description ¶
Description creates a card description
Types ¶
Click to show internal directories.
Click to hide internal directories.