MCPcopy Create free account
hub / github.com/anomalyco/console / TextButton

Function TextButton

packages/web/workspace/src/ui/button.tsx:453–468  ·  view source on GitHub ↗
(props: TextButtonProps)

Source from the content-addressed store, hash-verified

451};
452
453export function TextButton(props: TextButtonProps) {
454 return (
455 <TextButtonRoot {...props}>
456 <Show when={props.icon}>
457 {props.completing ? (
458 <TextButtonIcon>
459 <IconCheck />
460 </TextButtonIcon>
461 ) : (
462 <TextButtonIcon>{props.icon}</TextButtonIcon>
463 )}
464 </Show>
465 {props.children}
466 </TextButtonRoot>
467 );
468}
469
470const IconButtonRoot = styled("button", {
471 base: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected